UNPKG

node-bebop

Version:

Node.js JavaScript library for the Parrot Bebop

26 lines (15 loc) 547 B
"use strict"; var commandToBuffer = require("./commandToBuffer"); var Network = module.exports = function(self) { this.self = self; }; Network.prototype.disconnect = function() { var buffer = commandToBuffer(0, "Network", "Disconnect"); this.self._writePacket(this.self._networkFrameGenerator(buffer)); return this.self; }; Network.prototype.wifiAuthChannel = function() { var buffer = commandToBuffer(1, "Network", "WifiAuthChannel"); this.self._writePacket(this.self._networkFrameGenerator(buffer)); return this.self; };