4 #include "../nextion_component.h" 5 #include "../nextion_base.h" 23 void process_sensor(
const std::string &variable_name,
int state)
override;
27 void set_state(
float state,
bool publish,
bool send_to_nextion)
override;
37 this->
set_state(state_value, publish, send_to_nextion);
void set_wave_channel_id(uint8_t wave_chan_id)
void add_to_wave_buffer(float state)
void set_waveform_send_last_value(bool send_last_value)
void set_precision(uint8_t precision)
void set_component_id(uint8_t component_id)
void update_component() override
This class simplifies creating components that periodically check a state.
void set_state(float state, bool publish) override
NextionSensor(NextionBase *nextion)
void set_state_from_int(int state_value, bool publish, bool send_to_nextion) override
void send_state_to_nextion() override
float state
This member variable stores the last state that has passed through all filters.
void process_sensor(const std::string &variable_name, int state) override
void set_wave_max_length(int wave_max_length)
void set_wave_max_value(uint32_t wave_maxvalue)
uint8_t get_wave_chan_id()
NextionQueueType get_queue_type() override
Implementation of SPI Controller mode.
void set_state_from_string(const std::string &state_value, bool publish, bool send_to_nextion) override
Base-class for all sensors.
void set_state(float state) override