It could well be the newlines that are causing problems. As @nicolasc_eu says, try using Serial.print and explicitly sending the newline character that you want.
Just a note that if you want to send 0x1A, you can do:
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.
It could well be the newlines that are causing problems. As @nicolasc_eu says, try using
Serial.print
and explicitly sending the newline character that you want.Just a note that if you want to send 0x1A, you can do:
but the following won't work: