I am trying to unpack in python the payload I receive from mqtt broker, from a ruuvi sensor flashed with WP5. After decoding the google protobuf, I end up with the payload which packed looks like:
I am using struct.unpack (format, payload) based on the documentation ruuvi provides
However I am having a hard time guessing the proper format for unpacking, although based on their direction it should look like similar to ‘iiiiii’, or smth like that.
I usually end up with struct.error: unpack requires a buffer of 68 bytes which means my format isn’t supporting the way it was packed. I presume there are no packing bits.
If someone has done this before, or have experience in this, will appreciate it if he can use the above payload and the right format to get the readings accordingly.