issue with struct.unpack
MRAB
python at mrabarnett.plus.com
Sat Aug 25 15:16:54 EDT 2012
On 25/08/2012 19:34, 9bizy wrote:
> I am trying to unpack values from sensor data I am retrieving through
> a serial cable, but I get errors while using struct.unpack, how can I
> use struct.unpack to unload the data in a readable format?
>
> I checked the python documentation for struct and I can seen to find
> any argument for this.
>
> I have data = struct.unpack('char',data) but I still get errors
>
The format strings are described here for Python 3:
http://docs.python.org/3.2/library/struct.html
and here for Python 2:
http://docs.python.org/2.7/library/struct.html
More information about the Python-list
mailing list