DPIclimate / broker

3 stars 3 forks source link

Change the logical mapper to drop messages from the future #72

Closed dajtxx closed 1 month ago

dajtxx commented 1 month ago

Some devices send messages with timestamps from the future if their RTC is not set correctly. Passing these messages on to downstream systems causes problems in those systems, so it may be best to record the message in the physical_timeseries message table and not send the message on.

It is impossible to know if the message is recent so simply putting the current timestamp on is not the way to go.

dajtxx commented 1 month ago

Fixed with PR #73 .