Used a second Puck to verify that JSON is valid
// Puck.js : { "a": "1", "b": 2 } NRF.requestDevice({ filters: [ { id:"d9:c7:0b:0a:48:20 random"}]}).then( function(d) { console.log(JSON.parse(String.fromCharCode.apply(null, d.manufacturerData))); } ); /* output =Promise: { } { "a": "1", "b": 2 } */
@MaBe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Used a second Puck to verify that JSON is valid