One thought about this - currently we store the raw string as 0xD1, len_lo, len_hi, string_data
But for a bunch of strings they are less than 255 chars so only need one byte of length. Maybe we should consider doing a bit like MQTT does with variable message length, which IIRC is:
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.
One thought about this - currently we store the raw string as
0xD1, len_lo, len_hi, string_data
But for a bunch of strings they are less than 255 chars so only need one byte of length. Maybe we should consider doing a bit like MQTT does with variable message length, which IIRC is:
0xD1, len, string_data
for <1280xD1, 128 | (len&127), len>>7, string_data