The <- Serial1 error is because the Puck is saying that it's changed the REPL from being on Serial to being on Bluetooth when it's first connected, and that's unfortunately getting read in as the result to the eval, rather than the actual value.
I just tweaked it so that the code writes something first to connect, then evals 0.5 sec later - that should fix it I hope.
I think going forward I should probably make the Puck.js lib wait automatically if the first command used is eval
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.
Hi - please can you try again now?
The
<- Serial1
error is because the Puck is saying that it's changed the REPL from being on Serial to being on Bluetooth when it's first connected, and that's unfortunately getting read in as the result to theeval
, rather than the actual value.I just tweaked it so that the code writes something first to connect, then evals 0.5 sec later - that should fix it I hope.
I think going forward I should probably make the Puck.js lib wait automatically if the first command used is
eval