hybridgroup/node-bebop

View on GitHub
lib/NetworkSettings.js

Summary

Maintainability
A
1 hr
Test Coverage


"use strict";

var commandToBuffer = require("./commandToBuffer");

var NetworkSettings = module.exports = function(self) {
  this.self = self;
};

NetworkSettings.prototype.wifiSelection = function(type, band, channel) {

  var buffer = commandToBuffer(1, "NetworkSettings", "WifiSelection",
                               type, band, channel);

  this.self._writePacket(this.self._networkFrameGenerator(buffer));
  return this.self;
};