I believe that my need for echo(0) comes from more complex code snippets that are separated by \n.
Yes, that'll be the issue. \x10 is just for a single line. You should be able to send all your code (even big bits of code) without newlines, but you could always just enclose multiple lines in angle brackets: "\x10{print(1)\nprint(2)\n}".
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.
Yes, that'll be the issue.
\x10
is just for a single line. You should be able to send all your code (even big bits of code) without newlines, but you could always just enclose multiple lines in angle brackets:"\x10{print(1)\nprint(2)\n}"
.