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:
bβ\xbf\x18@\x82\x01\x18\x8f\x01\x02\x02\x19\x0b\xf2\x04\x18\xeb\x05\x04\x06\x19\x1f@\x07\x16\x08\x18\xff\x18A\x86\x02\x19\x03\xe8\x19\x03\xe8\x18\xf58I\x04\x18B\x82\x00\x00\xffβ
I am using struct.unpack (format, payload) based on the documentation ruuvi provides
https://github.com/wirepas/wm-sdk/blob/master/source/ruuvi_evk/docs/censored_ruuvi_app_note.rst
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.
Thanks,
SA