SignalK / SensESP

Universal Signal K sensor framework for the ESP32 platform
https://signalk.org/SensESP/
Apache License 2.0
145 stars 79 forks source link

Implement new ExpiringValue container class #702

Closed mairas closed 3 weeks ago

mairas commented 1 month ago

ExpiringValue is a container that returns the contained value if its age is less that max_age. Otherwise, an expiration marker value is returned. This comes handy if you want to combine a large number of values into a single output while ensuring that the values are still current.