thanks for that I have amended the code.
command = "X('+json.dumps(dict).encode('utf-8')+')/n"
and
await client.write_gatt_char(UUID_NORDIC_TX,bytearray((c[0:20]),'utf-8') , True) c = c[20:]
Not sure if I need both utf-8's, however I am assuming that passing this to my function I will need to decode it.
@user118216 started
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.
thanks for that
I have amended the code.
and
Not sure if I need both utf-8's, however I am assuming that passing this to my function I will need to decode it.