No, that's expected - it's because you're interacting with the JS interpreter, which echoes back what it receives. To disable that you can also send echo(0)\n.
The easiest way is to send "\x10g(5)\n" - sending character code 16 on a blank line will stop Espruino from echoing just for that line. Obviously it's harder to do that (if not impossible) via nRF UART though!
If you don't send a newline, the command won't be executed. Then when you do send a newline you'll get g(5);g(9) executed.
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.
No, that's expected - it's because you're interacting with the JS interpreter, which echoes back what it receives. To disable that you can also send
echo(0)\n
.The easiest way is to send
"\x10g(5)\n"
- sending character code 16 on a blank line will stop Espruino from echoing just for that line. Obviously it's harder to do that (if not impossible) via nRF UART though!If you don't send a newline, the command won't be executed. Then when you do send a newline you'll get
g(5);g(9)
executed.