You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • 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 <128
    • 0xD1, 128 | (len&127), len>>7, string_data
  • This sounds a bit like UTF8. Would there happen to be code in the firmware for encoding/decoding that already?

About

Avatar for Gordon @Gordon started