#include <nextion_component_base.h>
|
virtual | ~NextionComponentBase ()=default |
|
void | set_variable_name (const std::string &variable_name, const std::string &variable_name_to_send="") |
|
virtual void | update_component_settings () |
|
virtual void | update_component_settings (bool force_update) |
|
virtual void | update_component () |
|
virtual void | process_sensor (const std::string &variable_name, int state) |
|
virtual void | process_touch (uint8_t page_id, uint8_t component_id, bool on) |
|
virtual void | process_text (const std::string &variable_name, const std::string &text_value) |
|
virtual void | process_bool (const std::string &variable_name, bool on) |
|
virtual void | set_state (float state) |
|
virtual void | set_state (float state, bool publish) |
|
virtual void | set_state (float state, bool publish, bool send_to_nextion) |
|
virtual void | set_state (bool state) |
|
virtual void | set_state (bool state, bool publish) |
|
virtual void | set_state (bool state, bool publish, bool send_to_nextion) |
|
virtual void | set_state (const std::string &state) |
|
virtual void | set_state (const std::string &state, bool publish) |
|
virtual void | set_state (const std::string &state, bool publish, bool send_to_nextion) |
|
uint8_t | get_component_id () |
|
void | set_component_id (uint8_t component_id) |
|
uint8_t | get_wave_channel_id () |
|
void | set_wave_channel_id (uint8_t wave_chan_id) |
|
std::vector< uint8_t > | get_wave_buffer () |
|
size_t | get_wave_buffer_size () |
|
void | clear_wave_buffer (size_t buffer_sent) |
|
std::string | get_variable_name () |
|
std::string | get_variable_name_to_send () |
|
virtual NextionQueueType | get_queue_type () |
|
virtual std::string | get_queue_type_string () |
|
virtual void | set_state_from_int (int state_value, bool publish, bool send_to_nextion) |
|
virtual void | set_state_from_string (const std::string &state_value, bool publish, bool send_to_nextion) |
|
virtual void | send_state_to_nextion () |
|
bool | get_needs_to_send_update () |
|
uint8_t | get_wave_chan_id () |
|
void | set_wave_max_length (int wave_max_length) |
|
Definition at line 30 of file nextion_component_base.h.
◆ ~NextionComponentBase()
virtual esphome::nextion::NextionComponentBase::~NextionComponentBase |
( |
| ) |
|
|
virtualdefault |
◆ clear_wave_buffer()
void esphome::nextion::NextionComponentBase::clear_wave_buffer |
( |
size_t |
buffer_sent | ) |
|
|
inline |
◆ get_component_id()
uint8_t esphome::nextion::NextionComponentBase::get_component_id |
( |
| ) |
|
|
inline |
◆ get_needs_to_send_update()
bool esphome::nextion::NextionComponentBase::get_needs_to_send_update |
( |
| ) |
|
|
inline |
◆ get_queue_type()
virtual NextionQueueType esphome::nextion::NextionComponentBase::get_queue_type |
( |
| ) |
|
|
inlinevirtual |
◆ get_queue_type_string()
virtual std::string esphome::nextion::NextionComponentBase::get_queue_type_string |
( |
| ) |
|
|
inlinevirtual |
◆ get_variable_name()
std::string esphome::nextion::NextionComponentBase::get_variable_name |
( |
| ) |
|
|
inline |
◆ get_variable_name_to_send()
std::string esphome::nextion::NextionComponentBase::get_variable_name_to_send |
( |
| ) |
|
|
inline |
◆ get_wave_buffer()
std::vector<uint8_t> esphome::nextion::NextionComponentBase::get_wave_buffer |
( |
| ) |
|
|
inline |
◆ get_wave_buffer_size()
size_t esphome::nextion::NextionComponentBase::get_wave_buffer_size |
( |
| ) |
|
|
inline |
◆ get_wave_chan_id()
uint8_t esphome::nextion::NextionComponentBase::get_wave_chan_id |
( |
| ) |
|
|
inline |
◆ get_wave_channel_id()
uint8_t esphome::nextion::NextionComponentBase::get_wave_channel_id |
( |
| ) |
|
|
inline |
◆ process_bool()
virtual void esphome::nextion::NextionComponentBase::process_bool |
( |
const std::string & |
variable_name, |
|
|
bool |
on |
|
) |
| |
|
inlinevirtual |
◆ process_sensor()
virtual void esphome::nextion::NextionComponentBase::process_sensor |
( |
const std::string & |
variable_name, |
|
|
int |
state |
|
) |
| |
|
inlinevirtual |
◆ process_text()
virtual void esphome::nextion::NextionComponentBase::process_text |
( |
const std::string & |
variable_name, |
|
|
const std::string & |
text_value |
|
) |
| |
|
inlinevirtual |
◆ process_touch()
virtual void esphome::nextion::NextionComponentBase::process_touch |
( |
uint8_t |
page_id, |
|
|
uint8_t |
component_id, |
|
|
bool |
on |
|
) |
| |
|
inlinevirtual |
◆ send_state_to_nextion()
virtual void esphome::nextion::NextionComponentBase::send_state_to_nextion |
( |
| ) |
|
|
inlinevirtual |
◆ set_component_id()
void esphome::nextion::NextionComponentBase::set_component_id |
( |
uint8_t |
component_id | ) |
|
|
inline |
◆ set_state() [1/9]
virtual void esphome::nextion::NextionComponentBase::set_state |
( |
float |
state | ) |
|
|
inlinevirtual |
◆ set_state() [2/9]
virtual void esphome::nextion::NextionComponentBase::set_state |
( |
float |
state, |
|
|
bool |
publish |
|
) |
| |
|
inlinevirtual |
◆ set_state() [3/9]
virtual void esphome::nextion::NextionComponentBase::set_state |
( |
float |
state, |
|
|
bool |
publish, |
|
|
bool |
send_to_nextion |
|
) |
| |
|
inlinevirtual |
◆ set_state() [4/9]
virtual void esphome::nextion::NextionComponentBase::set_state |
( |
bool |
state | ) |
|
|
inlinevirtual |
◆ set_state() [5/9]
virtual void esphome::nextion::NextionComponentBase::set_state |
( |
bool |
state, |
|
|
bool |
publish |
|
) |
| |
|
inlinevirtual |
◆ set_state() [6/9]
virtual void esphome::nextion::NextionComponentBase::set_state |
( |
bool |
state, |
|
|
bool |
publish, |
|
|
bool |
send_to_nextion |
|
) |
| |
|
inlinevirtual |
◆ set_state() [7/9]
virtual void esphome::nextion::NextionComponentBase::set_state |
( |
const std::string & |
state | ) |
|
|
inlinevirtual |
◆ set_state() [8/9]
virtual void esphome::nextion::NextionComponentBase::set_state |
( |
const std::string & |
state, |
|
|
bool |
publish |
|
) |
| |
|
inlinevirtual |
◆ set_state() [9/9]
virtual void esphome::nextion::NextionComponentBase::set_state |
( |
const std::string & |
state, |
|
|
bool |
publish, |
|
|
bool |
send_to_nextion |
|
) |
| |
|
inlinevirtual |
◆ set_state_from_int()
virtual void esphome::nextion::NextionComponentBase::set_state_from_int |
( |
int |
state_value, |
|
|
bool |
publish, |
|
|
bool |
send_to_nextion |
|
) |
| |
|
inlinevirtual |
◆ set_state_from_string()
virtual void esphome::nextion::NextionComponentBase::set_state_from_string |
( |
const std::string & |
state_value, |
|
|
bool |
publish, |
|
|
bool |
send_to_nextion |
|
) |
| |
|
inlinevirtual |
◆ set_variable_name()
void esphome::nextion::NextionComponentBase::set_variable_name |
( |
const std::string & |
variable_name, |
|
|
const std::string & |
variable_name_to_send = "" |
|
) |
| |
|
inline |
◆ set_wave_channel_id()
void esphome::nextion::NextionComponentBase::set_wave_channel_id |
( |
uint8_t |
wave_chan_id | ) |
|
|
inline |
◆ set_wave_max_length()
void esphome::nextion::NextionComponentBase::set_wave_max_length |
( |
int |
wave_max_length | ) |
|
|
inline |
◆ update_component()
virtual void esphome::nextion::NextionComponentBase::update_component |
( |
| ) |
|
|
inlinevirtual |
◆ update_component_settings() [1/2]
virtual void esphome::nextion::NextionComponentBase::update_component_settings |
( |
| ) |
|
|
inlinevirtual |
◆ update_component_settings() [2/2]
virtual void esphome::nextion::NextionComponentBase::update_component_settings |
( |
bool |
force_update | ) |
|
|
inlinevirtual |
◆ component_id_
uint8_t esphome::nextion::NextionComponentBase::component_id_ = 0 |
|
protected |
◆ needs_to_send_update_
bool esphome::nextion::NextionComponentBase::needs_to_send_update_ |
|
protected |
◆ variable_name_
std::string esphome::nextion::NextionComponentBase::variable_name_ |
|
protected |
◆ variable_name_to_send_
std::string esphome::nextion::NextionComponentBase::variable_name_to_send_ |
|
protected |
◆ wave_buffer_
std::vector<uint8_t> esphome::nextion::NextionComponentBase::wave_buffer_ |
|
protected |
◆ wave_chan_id_
uint8_t esphome::nextion::NextionComponentBase::wave_chan_id_ = UINT8_MAX |
|
protected |
◆ wave_max_length_
int esphome::nextion::NextionComponentBase::wave_max_length_ = 255 |
|
protected |
The documentation for this class was generated from the following file: