34 static const std::set<Sensor*>&
get_sensors() {
return sensors_; }
37 static std::set<Sensor*> sensors_;
An object that is capable of having configuration data that can be set remotely using a RESTful API,...
A base class which allow observers to attach callbacks to themselves. The callbacks will be called wh...
unsigned int repeat_interval_ms_
void start() override final
std::function< void(RepeatSensor< T > *)> emitting_callback_
std::function< T()> returning_callback_
The base class for all sensors. Used only as a base class - never instantiated directly in a project.
static const std::set< Sensor * > & get_sensors()
Sensor template class for any sensor producing actual values.
Automatic calling of the start() method at startup.
A base class for any sensor or piece of code that outputs a value for consumption elsewhere.
SensorT< String > StringSensor
SensorT< float > FloatSensor
SensorT< bool > BoolSensor