utf8 not uft8. I am a freaking dumbass.

This commit is contained in:
mmcwilliams 2017-12-12 11:57:04 -05:00
parent 05a69e5512
commit f74465cbbc
1 changed files with 1 additions and 1 deletions

View File

@ -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