27 void set_state(
float state,
bool publish,
bool send_to_nextion)
override;
37 this->
set_state(state_value, publish, send_to_nextion);
This class simplifies creating components that periodically check a state.
void set_state(float state, bool publish) override
void set_wave_max_length(int wave_max_length)
void set_wave_max_value(uint32_t wave_maxvalue)
void set_component_id(uint8_t component_id)
void set_state_from_int(int state_value, bool publish, bool send_to_nextion) override
void add_to_wave_buffer(float state)
void send_state_to_nextion() override
void set_state_from_string(const std::string &state_value, bool publish, bool send_to_nextion) override
void set_waveform_send_last_value(bool send_last_value)
NextionSensor(NextionBase *nextion)
void set_wave_channel_id(uint8_t wave_chan_id)
void set_precision(uint8_t precision)
NextionQueueType get_queue_type() override
void set_state(float state) override
void update_component() override
void process_sensor(const std::string &variable_name, int state) override
uint8_t get_wave_chan_id()
Base-class for all sensors.
float state
This member variable stores the last state that has passed through all filters.
Providing packet encoding functions for exchanging data with a remote host.