The base class for all sensors. Used only as a base class - never instantiated directly in a project.
More...
#include <sensesp/sensors/sensor.h>
|
| SensorConfig (const String &config_path) |
|
| Observable () |
|
| Observable (Observable &&other) |
| Move constructor.
|
|
void | notify () |
|
void | attach (std::function< void()> observer) |
|
| FileSystemSaveable (const String &config_path) |
|
virtual bool | load () override |
| Load and populate the object from a persistent storage.
|
|
virtual bool | save () override |
| Save the object to a persistent storage.
|
|
virtual bool | clear () override |
| Delete the data from a persistent storage.
|
|
bool | find_config_file (const String &config_path, String &filename) |
|
| Saveable (const String &config_path) |
|
virtual bool | refresh () |
| Refresh the object. This may or may not access the persistent storage but is not expected to overwrite the object's state.
|
|
const String & | get_config_path () const |
|
virtual bool | to_json (JsonObject &root) |
|
virtual bool | from_json (const JsonObject &root) |
|
The base class for all sensors. Used only as a base class - never instantiated directly in a project.
In SensESP, a sensor is something that takes a measurement outside of the SensESP / SignalK environment and brings it into SensESP. Look at the list of files in https://github.com/SignalK/SensESP/tree/master/src/sensors for all the already-defined sensors.
- Parameters
-
config_path | The path that defines the place in the hierarchy of variables, in the Config UI, that are configurable at run-time. If a class has no configurable variables, or if you simply don't want any particular variable to be configurable at run-time in your project, don't provide a config_path when you construct the class. |
Definition at line 29 of file sensor.h.
◆ SensorConfig()
sensesp::SensorConfig::SensorConfig |
( |
const String & | config_path | ) |
|
|
inline |
The documentation for this class was generated from the following file: