From 76fcc953272c270b490750d998146776f95b07bd Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Mon, 11 Dec 2017 14:47:05 -0500 Subject: [PATCH] See what state is before sending --- lib/ble/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ble/index.js b/lib/ble/index.js index b644608..bbe4e52 100644 --- a/lib/ble/index.js +++ b/lib/ble/index.js @@ -180,6 +180,8 @@ class BLE { _onRead (offset, callback) { const result = bleno.Characteristic.RESULT_SUCCESS const state = getState() + console.log('getState') + console.dir(state) const data = new Buffer(JSON.stringify( state )) callback(result, data.slice(offset, data.length)) }