• Do you have your Web Bluetooth page hosted online somewhere that I could take a look at?

    I just went to https://www.espruino.com/try.php?page=Pu­ck.js+Web+Bluetooth&n=0, clicked some buttons to get it connected, opened devtools, and then started typing.

    Puck.write('LED1.set();\n');
    Puck.write('\x10LED1.reset();\n');
    // both work
    Puck.write('LED1.set();\n');Puck.eval("B­TN.read()",function(x) { console.log(x); })
    // fails - as expected
    Puck.write('\x10LED1.set();\n');Puck.eva­l("BTN.read()",function(x) { console.log(x); })
    // works fine
    
About

Avatar for Gordon @Gordon started