hybridgroup/node-bebop

View on GitHub
lib/Accessory.js

Summary

Maintainability
A
1 hr
Test Coverage


"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;
};