Pass back actual state object.

This commit is contained in:
mmcwilliams 2017-12-11 14:44:27 -05:00
parent 139c72caee
commit 5f97c7a4de
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ 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()
const data = new Buffer(JSON.stringify( { success : true } )) const data = new Buffer(JSON.stringify( state ))
callback(result, data.slice(offset, data.length)) callback(result, data.slice(offset, data.length))
} }
/** /**