Hello,
I am trying to use the information coming from the AB BLE Gateway V4 via MQTT server into python. After unpacking via msgpack.unpack (payload) the devices array seems to be partially messed up:
Here an example:
{‘ip’: ‘192.168.2.116’, ‘v’: ‘1.1.0.26’, ‘mid’: 1558, ‘devices’: [’\x03\x12;j\x1bE\xcc\xc1\x02\x01\x06\x1a\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\x01\x00\x07\xc5’, ‘\x03\xc4S9<\x9d\xe6\xc7\x02\x01\x06\x1b\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\td\x0b\xcbd’, ‘\x03\x12;j\x1bE\xcf\xc0\x02\x01\x06\x1a\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\x01\x00\x08\xc5’, ‘\x03\xe9D\xf6\x1eBE\xb9\x02\x01\x06\x1a\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\td\x05\xc5’, ‘\x03\x12;j\x1bE\xcf\xbf\x02\x01\x06\x1a\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\x01\x00\x08\xc5’, ‘\x03\xde\xfb)\6\x0f\xc2\x02\x01\x06\x1b\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\tY\t\xcbY’, ‘\x03\x12;j\x1bE\xcc\xc1\x02\x01\x06\x1a\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\x01\x00\x07\xc5’, ‘\x03\x12;j\x1bE\xcc\xc1\x02\x01\x06\x1a\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\x01\x00\x07\xc5’, ‘\x03\xe9D\xf6\x1eBE\xb8\x02\x01\x06\x1a\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\td\x05\xc5’, ‘\x03\xdf\xca\x9e\xcd\xcfi\xb7\x02\x01\x06\x1b\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\td\n\xcbd’, ‘\x03\x12;j\x1bE\xcf\xc0\x02\x01\x06\x1a\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\x01\x00\x08\xc5’, ‘\x03\xde\xfb)\6\x0f\xc2\x02\x01\x06\x1b\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\tY\t\xcbY’, ‘\x03\x12;j\x1bE\xcc\xc0\x02\x01\x06\x1a\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\x01\x00\x07\xc5’, ‘\x03\xc4S9<\x9d\xe6\xc8\x02\x01\x06\x1b\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\td\x0b\xcbd’, ‘\x03\x12;j\x1bE\xcf\xc1\x02\x01\x06\x1a\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\x01\x00\x08\xc5’, ‘\x03\xe9D\xf6\x1eBE\xb5\x02\x01\x06\x1a\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\td\x05\xc5’, ‘\x03\x12;j\x1bE\xcf\xb7\x02\x01\x06\x1a\xffL\x00\x02\x15^\xb2\xae\xdeO{1n#|\xd7 H\x7f\xb4\xb0\x00\x01\x00\x08\xc5’], ‘mac’: ‘30AEA490FE14’, ‘time’: 404}
Any idea why this happened and how to correctly unpack the information to not mess up the devices part?
Any help or idea would be great
Ingo