Jul-21-2019, 08:42 PM
You don't seem to understand the meaning of the b which is a purely syntactic indicator to the python compiler. Why do you write
raw_data = '\x01\x81\xaa\x76\...'instead of
raw_data = b'\x01\x81\xaa\x76\...'