Pass back actual state object.
This commit is contained in:
parent
139c72caee
commit
5f97c7a4de
|
@ -180,7 +180,7 @@ class BLE {
|
|||
_onRead (offset, callback) {
|
||||
const result = bleno.Characteristic.RESULT_SUCCESS
|
||||
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))
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue