void set_resistor(float resistor)
ResistanceConfiguration configuration_
void set_configuration(ResistanceConfiguration configuration)
void set_reference_voltage(float reference_voltage)
void process_(float value)
float get_setup_priority() const override
void set_sensor(Sensor *sensor)
void dump_config() override
Base-class for all sensors.
void add_on_state_callback(std::function< void(float)> &&callback)
Add a callback that will be called every time a filtered value arrives.
bool has_state() const
Return whether this sensor has gotten a full state (that passed through all filters) yet.
float state
This member variable stores the last state that has passed through all filters.
const float DATA
For components that import data from directly connected sensors like DHT.
Providing packet encoding functions for exchanging data with a remote host.