Want to parse RTCM binary data. Using ublox gps receiver. Looking for the RTCM start byte D3, by using
if buffer[i] == 0xd3
But seems it does not match, and not entering the loop at all. I tested with
if buffer[i] == b'xd3'
But it is not working too.
Tested in powershell prompt (anaconda) to check like this:
>>> bin_Str = b'\x24\x47\x50\xd3'
>>> bin_Str
b'$GP\xd3'
>>> bin_Str[3] == 0xd3
True
So, seems it should match 0xd3. I have checked the log. There ARE D3 in the binary data. Can anyone please help? Would be really grateful.