BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions
BeeeOn::Occasionally Class Reference

#include <Occasionally.h>

Public Member Functions

 Occasionally (unsigned int max=1000, const Poco::Timestamp::TimeDiff delayMax=0)
 
void execute (const std::function< void()> &func)
 

Detailed Description

Helper providing occasional execution of some command. E.g. we want to log some events but not every time we execute the call. This class wraps a sampling capability that provides just occasional calls.


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