boost-movehub
Version:
Connects with your Lego Boost Movehub vie Bluetooth Low Energy (BLE).
28 lines (23 loc) • 624 B
JavaScript
const DeviceMessage = require("./DeviceMessage");
/**
* GenericError received from theMoveHub.
*
* As defined in https://lego.github.io/lego-ble-wireless-protocol-docs/index.html#generic-error-messages
*/
class GenericError extends DeviceMessage {
toString() {
return "TODO: what part of data is the error?";
}
}
GenericError.TYPE = 0x35;
GenericError.DEFINITION = {
0x01: "ACK",
0x02: "MACK",
0x03: "Buffer Overflow",
0x04: "Timeout",
0x05: "Command NOT recognized",
0x06: "Invalid use (e.g. parameter error(s)",
0x07: "Overcurrent",
0x08: "Internal ERROR"
};
module.exports = GenericError;