UNPKG

flower-power-ble

Version:

node.js/BLE lib to comminucate with Parrot Flower Power devices

8 lines (6 loc) 158 B
function UploadBuffer(buffer) { this.idx = buffer.readUInt16LE(0); this.data = new Buffer(buffer.slice(2)); return this; } module.exports = UploadBuffer;