utf8 not uft8. I am a freaking dumbass.
This commit is contained in:
parent
05a69e5512
commit
f74465cbbc
|
@ -171,7 +171,7 @@ class BLE {
|
||||||
return callback(result)
|
return callback(result)
|
||||||
}
|
}
|
||||||
utf8 = data.toString('utf8')
|
utf8 = data.toString('utf8')
|
||||||
console.log(uft8)
|
console.log(utf8)
|
||||||
obj = JSON.parse(utf8)
|
obj = JSON.parse(utf8)
|
||||||
console.dir(obj)
|
console.dir(obj)
|
||||||
result = bleno.Characteristic.RESULT_SUCCESS
|
result = bleno.Characteristic.RESULT_SUCCESS
|
||||||
|
|
Loading…
Reference in New Issue