bleak icon indicating copy to clipboard operation
bleak copied to clipboard

Wrong bytes received on Windows

Open ASabovic opened this issue 3 years ago • 1 comments

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?

ASabovic avatar Jul 13 '22 18:07 ASabovic

The data looks correct to me. 0x22 is shown as the ascii character " .

>>> print(bytearray(b'\x00\x11"\x11').hex())
00112211

dlech avatar Jul 13 '22 19:07 dlech