Closed karimkawambwa closed 5 years ago
👍 @karimkawambwa
Thinking out loud, shouldn't there be a limit to this? I mean if a sensor hasn't send PM data in 3 months while we're still receiving temp & humidity data, should we still report that the last time we received data from this node was 3 months ago?
@kilemensi I think that will probably deserve another variable to track. Thanks for raising that issue, I will plan to add that variable incase its needed or that case happens. (aka for debug purposes)
Description
Sometimes the sensor stops sending PM data but keeps sending humidity/temperature values and therefore we miss the PM data. This PR makes a change to prioritize caching of last received based on the PM data.
Fixes # (issue)
Type of change
Checklist: