This may help https://docs.python.org/3/library/stdty ... t.to_bytes
When I have a whole packets of data to process for serial communications, I prefer to create a struct for the packet and use pack/unpack to convert back and forth as needed.
https://docs.python.org/3/library/struc ... ule-struct
When I have a whole packets of data to process for serial communications, I prefer to create a struct for the packet and use pack/unpack to convert back and forth as needed.
https://docs.python.org/3/library/struc ... ule-struct
Statistics: Posted by Paul Hutch — Mon Apr 29, 2024 11:35 pm