LordMike / MBW.BlueRiiot2MQTT

Utility to map between Blue Riiots pool API, and Home Assistant MQTT
49 stars 2 forks source link

Ignore BLE measurements when calculating next poll time #20

Closed LordMike closed 4 years ago

LordMike commented 4 years ago

When a bluetooth measurement is made, it's likely that that measurement time is used as a basis for the next poll - but if the Blue device does not take this into account, one poll interval will be out of order (we'll poll later than anticipated)

Should be testable by making a Bluetooth measurement moments before a scheduled measurement, and see if data arrived by sigfox shortly after.

ggggh commented 4 years ago

Just did a check (simplified numbers below):

Therefore my assessment is the bluetooth measurement did not modify the next poll plan and we should not extend the poll interval when a forced synch is triggered

LordMike commented 4 years ago

Awesome. I should be able to modify the logic such that BLE measurements are not used for time calculation.

Thanks :)