UNPKG

node-bebop

Version:

Node.js JavaScript library for the Parrot Bebop

18 lines (10 loc) 357 B
"use strict"; var commandToBuffer = require("./commandToBuffer"); var Accessory = module.exports = function(self) { this.self = self; }; Accessory.prototype.config = function(accessory) { var buffer = commandToBuffer(0, "Accessory", "Config", accessory); this.self._writePacket(this.self._networkFrameGenerator(buffer)); return this.self; };