[xxx@xxx] /iot/bluetooth> scanners/advertisements/print follow
0 bt1 adv-ind apr/17/2022 13:28:44 public A4:C1:38:2F:29:19 -37dBm 22 151695fe50585b059719292f38c1a40d1004e4005c01
Looks ok, but the packets I would expect would be way longer, like this one (identical packet captured via a python script on a laptop next to the knot:
043e220201000019292f38c1a416151695fe50585b059919292f38c1a40d1004e4005d01ce
I know this is a good packet because I can decode it:
>>> sensor_msg, tracker_msg = ble_parser.parse_data(bytes(bytearray.fromhex("043e220201000019292f38c1a416151695fe50585b059919292f38c1a40d1004e4005d01ce")));print(sensor_msg)
{'rssi': -50, 'mac': 'A4C1382F2919', 'type': 'LYWSD03MMC', 'packet': 153, 'firmware': 'Xiaomi (MiBeacon V5)', 'data': True, 'temperature': 22.8, 'humidity': 34.9}
Clearly the two payloads look really similar:
Code: Select all
043e220201000019292f38c1a416151695fe50585b059919292f38c1a40d1004e4005d01ce
151695fe50585b059719292f38c1a40d1004e4005c01