What's happening is, as mentioned in the code I posted,
\x10 -> Echo off for line so don't try and send any text back
If you removed the \x10 from the string in what you wrote, you would see data back, but you'd also see some extra characters (like the code you write echoed back to you, plus a newline and = and then your answer)
It's much easier to just stop Espruino writing stuff automatically with \x10 and then to explicitly tell it to write stuff with Bluetooth.println
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.
Looks promising.
I'd suggest changing
command
to:What's happening is, as mentioned in the code I posted,
If you removed the
\x10
from the string in what you wrote, you would see data back, but you'd also see some extra characters (like the code you write echoed back to you, plus a newline and=
and then your answer)It's much easier to just stop Espruino writing stuff automatically with
\x10
and then to explicitly tell it to write stuff withBluetooth.println