Mar-14-2018, 08:49 AM
Thank you for the quick reply, Larz.
The number conversion between int,hex etc seems ok. Int 3360 becomes hex 0xd20. How would you convert it to b'\x0d\x20' ? When running struct it just becomes b' \r'
The number conversion between int,hex etc seems ok. Int 3360 becomes hex 0xd20. How would you convert it to b'\x0d\x20' ? When running struct it just becomes b' \r'
#print(struct.pack("<H", 3360))
Output:b' \r'