Could somebody help me with converting 7 byte
of data into binary value in Python?
The server receives a 7 byte
data using MQTT
and I want to convert this data into binary, break it down and extract specific lengths of bits from this data in Python for further handling.
If I received:
810be320cab3d
I want to convert it to:
1000000100001011111000110010000011001010101100111101
store this in a variable, then later break this value down into a couple of piece so I can slice the value using str()
or truncate()
, I hope.