|
发表于 2024-6-14 09:20:14
|
显示全部楼层
[08:48:03][D][xiaomi_blez:113]: 接收到的所有数据 Data: 50.44.99.05.A8.41.C8.DB.13.AE.FB.0A.10.05.64.3C.93.6B.66 (19)
[08:48:03][D][xiaomi_blez:115]: sx2 Packet : 50.44.99.05.A8.41.C8.DB.13.AE.FB.0A.10.05.64.3C.93.6B.66 (19)
[08:48:03][D][xiaomi_blez:067]: payload 10
[08:48:03][D][xiaomi_blez:084]: value_length:5;payload_length:8
[08:48:03][D][xiaomi_blez:240]: Got Xiaomi MijiaLock (FB:AE:13B:C8:41):
[08:48:03][D][xiaomi_blez:249]: BattLevel: 100
[08:48:03][D][xiaomi_blez:261]: BattLevelTS: 1718326076
[08:48:03][D][sensor:094]: 'BattLvl': Sending state 100.00000 % with 0 decimals of accuracy
[08:48:03][D][sensor:094]: 'BattLvlTS': Sending state 1718326016.00000 with 0 decimals of accuracy
[08:48:03][W][component:237]: Component esp32_ble_tracker took a long time for an operation (82 ms).
[08:48:03][W][component:238]: Components should block for at most 30 ms.
[08:48:03][D][xiaomi_blez:113]: 接收到的所有数据 Data: 50.44.99.05.A8.41.C8.DB.13.AE.FB.0A.10.05.64.3C.93.6B.66 (19)
[08:48:03][D][xiaomi_blez:115]: sx2 Packet : 50.44.99.05.A8.41.C8.DB.13.AE.FB.0A.10.05.64.3C.93.6B.66 (19)
这是最新的电量日志
else if ((value_type == 0x0A) && (value_length == 5)) {
const uint32_t battlvlts = encode_uint32(data[4], data[3], data[2], data[1]);
result.battlvl = data[0];
result.battlvlts = battlvlts;
已经改过uint32_t ,BattLvlTS还是不一致 这个解决了 我感觉keyid也就解决啦 |
|