1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | 1× | /*jslint node: true */ "use strict"; //presumably defined here https://github.com/PunchThrough/bean-documentation/blob/master/app_message_types.md module.exports = { MSG_ID_SERIAL_DATA : new Buffer([0x00, 0x00]), MSG_ID_BT_SET_ADV : new Buffer([0x05, 0x00]), MSG_ID_BT_SET_CONN : new Buffer([0x05, 0x02]), MSG_ID_BT_SET_LOCAL_NAME : new Buffer([0x05, 0x04]), MSG_ID_BT_SET_PIN : new Buffer([0x05, 0x06]), MSG_ID_BT_SET_TX_PWR : new Buffer([0x05, 0x08]), MSG_ID_BT_GET_CONFIG : new Buffer([0x05, 0x10]), MSG_ID_BT_ADV_ONOFF : new Buffer([0x05, 0x12]), MSG_ID_BT_SET_SCRATCH : new Buffer([0x05, 0x14]), MSG_ID_BT_GET_SCRATCH : new Buffer([0x05, 0x15]), MSG_ID_BT_RESTART : new Buffer([0x05, 0x20]), MSG_ID_GATING : new Buffer([0x05, 0x50]), MSG_ID_BL_CMD : new Buffer([0x10, 0x00]), MSG_ID_BL_FW_BLOCK : new Buffer([0x10, 0x01]), MSG_ID_BL_STATUS : new Buffer([0x10, 0x02]), MSG_ID_CC_LED_WRITE : new Buffer([0x20, 0x00]), MSG_ID_CC_LED_WRITE_ALL : new Buffer([0x20, 0x01]), MSG_ID_CC_LED_READ_ALL : new Buffer([0x20, 0x02]), MSG_ID_CC_ACCEL_READ : new Buffer([0x20, 0x10]), MSG_ID_CC_TEMP_READ : new Buffer([0x20, 0x11]), MSG_ID_AR_SET_POWER : new Buffer([0x30, 0x00]), MSG_ID_AR_GET_CONFIG : new Buffer([0x30, 0x06]), MSG_ID_DB_LOOPBACK : new Buffer([0xFE, 0x00]), MSG_ID_DB_COUNTER : new Buffer([0xFE, 0x01]), }; |