• 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

    1. delete the current line like Ctrl-U (\x15)
    2. 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?

    Regards, Steffen

About

Avatar for Steffen @Steffen started