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 h
sv: ", data
I tries so many format for the struct.unpack but I got this errors:
Traceback (most recent call last):
data = struct.unpack('!B4HH', data)
struct.error: unpack requires a string argument of length 11
On Saturday, 25 August 2012 19:34:39 UTC+1, 9bizy wrote:
&g
On Saturday, 25 August 2012 20:16:54 UTC+1, MRAB wrote:
> 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.
On Tuesday, 28 August 2012 23:49:54 UTC+1, MRAB wrote:
> On 28/08/2012 23:34, 9bizy wrote:
>
> > This is what I have to reproduce the challenge I am having below:
>
> >
>
> >
>
> > import csv
>
> > import struct
>
> >
>
&g
On Wednesday, 29 August 2012 00:36:40 UTC+1, MRAB wrote:
> On 29/08/2012 00:01, 9bizy wrote:> On Tuesday, 28 August 2012 23:49:54
>
> UTC+1, MRAB wrote:
>
> >> On 28/08/2012 23:34, 9bizy wrote:
>
> >> > This is what I have to re