bleak
bleak copied to clipboard
Wrong bytes received on Windows
I am working with the Arduino BLE board and I just send a simple byte array: char byte_array[] = {0x00, 0x11, 0x22, 0x11}. I am able to receive data on my PC but completely different. First two bytes are okay but the rest is not: bytearray(b'\x00\x11"\x11'). Do you maybe know what can cause this issue?
The data looks correct to me. 0x22 is shown as the ascii character " .
>>> print(bytearray(b'\x00\x11"\x11').hex())
00112211