I tried something similar, but the terminal implementation on the espruino itself is the painful part. I was surprised to find out that the board is the one implementing the CLI and the serial connection simply sends/receives text characters.
Is it possible to use a communication protocol and bypass espruino's CLI? Or maybe configure espruino to not send the cli prefix >, nor the response prefix =. You could also view it as a consistency problem, espruino is sending \r\n at the end of intermediate lines, and \r> at the end of output, but interpreting the text is wrong and can lead to a lot of problems.
Overall, is there a way to connect to the board without using its CLI, in order to implement a (proper) cli?
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.
I tried something similar, but the terminal implementation on the espruino itself is the painful part. I was surprised to find out that the board is the one implementing the CLI and the serial connection simply sends/receives text characters.
Is it possible to use a communication protocol and bypass espruino's CLI? Or maybe configure espruino to not send the cli prefix
>
, nor the response prefix=
. You could also view it as a consistency problem, espruino is sending\r\n
at the end of intermediate lines, and\r>
at the end of output, but interpreting the text is wrong and can lead to a lot of problems.Overall, is there a way to connect to the board without using its CLI, in order to implement a (proper) cli?