See what state is before sending

This commit is contained in:
mmcwilliams 2017-12-11 14:47:05 -05:00
parent 5f97c7a4de
commit 76fcc95327
1 changed files with 2 additions and 0 deletions

View File

@ -180,6 +180,8 @@ class BLE {
_onRead (offset, callback) { _onRead (offset, callback) {
const result = bleno.Characteristic.RESULT_SUCCESS const result = bleno.Characteristic.RESULT_SUCCESS
const state = getState() const state = getState()
console.log('getState')
console.dir(state)
const data = new Buffer(JSON.stringify( state )) const data = new Buffer(JSON.stringify( state ))
callback(result, data.slice(offset, data.length)) callback(result, data.slice(offset, data.length))
} }