When connecting to Espruino programmatically I send for example '\x15\x10echo(0);print(E.getTemperature())\n'
This works well, but besides looking a little ugly it is a big waste when connected over BLE.
If the were a key, say \x1f, that makes jsiHandleChar
delete the current line like Ctrl-U (\x15)
turn echo off permanently until re-enabled by echo(1)
the command sent became '\x1fprint(E.getTemperature())\n'.
This saves 9 bytes (almost halve of one BLE packet's payload, and probably a little overhead for parsing and interpreting the echo(0) call.
Is this something to consider as an enhancement?
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.
When connecting to Espruino programmatically I send for example
'\x15\x10echo(0);print(E.getTemperature())\n'
This works well, but besides looking a little ugly it is a big waste when connected over BLE.
If the were a key, say \x1f, that makes jsiHandleChar
the command sent became
'\x1fprint(E.getTemperature())\n'
.This saves 9 bytes (almost halve of one BLE packet's payload, and probably a little overhead for parsing and interpreting the echo(0) call.
Is this something to consider as an enhancement?
Regards, Steffen