• 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.

About

Avatar for user118216 @user118216 started