OpenWonderLabs / SwitchBotAPI-BLE

SwitchBot BLE open API
98 stars 9 forks source link

Thermometer Hygrometer Indoor Outdoor sometimes sends 25 bytes instead of 15 #30

Closed AdyRock closed 11 months ago

AdyRock commented 12 months ago

Analysis

When listening to BLE message, the manufacture data for the 'w' device often sends 25 bytes instead of 15 bytes in the packet. When that happens I can't find any data relating to the temperature or humidity.

It seems this is the only type of device to do that and is consistent with all 3 of these devices that I have. Maybe it is some other kind of data be transferred?

Expected Behavior

I expect to receive a manufacture data packet containing 14 bytes with temperature and humidity in know positions.

Steps To Reproduce

Listen to BLE broadcasts and monitor the manufacture data.

Logs

Good data:
Updated F3:30:3D:DF:2F:48 @ 8 = w
77 69 50 F3 30 3D DF 2F 48 11 07 87 86 14 00 

Bad data:
Invalid w Manufacture data: size = 25
4C 00 02 15 1B C5 D5 A5 02 00 B8 9F E6 11 4D 22 00 00 A2 CB 08 DF 2F 48 C3

Configuration

Not applicable

Environment

I can see the same issue when using the following:

Additional Context

No response

DigiH commented 12 months ago

Looks like the iBeacon protocol, with possibly the major and minor containing any data, or could it just be a beacon for paring??

github-actions[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 11 months ago

This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.