I have Puck.write working fine but Puck.eval is throwing an error on Chrome on Ubuntu.
Same error no matter what command I try, even 1+1.
<button onclick="Puck.eval('1+1;',function(x) { console.log(x); })">Get The Time</button>
This is on 1v92.
Am I missing something obvious? Thanks!
Uncaught SyntaxError: Unexpected token U in JSON at position 0
at JSON.parse (<anonymous>)
at puck.js:298
at Object.connection.cb (puck.js:235)
at Object.ondata (puck.js:272)
at Object.emit (puck.js:100)
at BluetoothRemoteGATTCharacteristic.<anonymous> (puck.js:190)
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.
I have Puck.write working fine but Puck.eval is throwing an error on Chrome on Ubuntu.
Same error no matter what command I try, even 1+1.
This is on 1v92.
Am I missing something obvious? Thanks!