Push dev work to master #2
|
@ -174,7 +174,9 @@ class BLE {
|
|||
obj = JSON.parse(utf8)
|
||||
result = bleno.Characteristic.RESULT_SUCCESS
|
||||
if (obj.type && this[`_on${capitalize(obj.type)}`]) {
|
||||
this[`_on${capitalize(obj.type)}`]( data => {
|
||||
this[`_on${capitalize(obj.type)}`]( obj => {
|
||||
let str = JSON.stringify(obj)
|
||||
let data = new Buffer(str)
|
||||
return callback(result, data.slice(offset, data.length))
|
||||
})
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue