BresserWeatherSensorReceiver
Bresser 5-in-1/6-in-1/7-in-1 868 MHz Weather Sensor Radio Receiver for Arduino based on CC1101 or SX1276/RFM95W
Loading...
Searching...
No Matches
RollingCounter Class Referenceabstract

Base class for rolling counter implementations. More...

#include <RollingCounter.h>

Inheritance diagram for RollingCounter:
Lightning RainGauge

Public Member Functions

 RollingCounter (const float quality_threshold=DEFAULT_QUALITY_THRESHOLD)
 
virtual ~RollingCounter ()=default
 
time_t getLastUpdate () const
 
uint8_t getUpdateRate () const
 

Detailed Description

Base class for rolling counter implementations.

Provides common functionality for managing rolling history buffers, handling timestamps, calculating time-based aggregates with quality metrics.

Constructor & Destructor Documentation

◆ RollingCounter()

RollingCounter::RollingCounter ( const float  quality_threshold = DEFAULT_QUALITY_THRESHOLD)
inline

Constructor

Parameters
quality_thresholdfraction of valid entries required for valid result

◆ ~RollingCounter()

virtual RollingCounter::~RollingCounter ( )
virtualdefault

Virtual destructor for proper cleanup in derived classes

Member Function Documentation

◆ getLastUpdate()

time_t RollingCounter::getLastUpdate ( ) const
inline

Get last update timestamp

Returns
last update timestamp

◆ getUpdateRate()

uint8_t RollingCounter::getUpdateRate ( ) const
inline

Get update rate

Returns
update rate in minutes

The documentation for this class was generated from the following files: