8static const char *
const TAG =
"uart.switch";
22 ESP_LOGD(TAG,
"'%s': Sending on data...", this->
get_name().c_str());
26 ESP_LOGD(TAG,
"'%s': Sending off data...", this->
get_name().c_str());
55 LOG_SWITCH(
"",
"UART Switch",
this);
57 ESP_LOGCONFIG(TAG,
" Send Every: %" PRIu32, this->
send_every_);
uint32_t IRAM_ATTR HOT get_loop_component_start_time() const
Get the cached time in milliseconds from when the current component started its loop execution.
const StringRef & get_name() const
bool state
The current reported state of the binary sensor.
void publish_state(bool state)
Publish a state to the front-end from the back-end.
void write_array(const uint8_t *data, size_t len)
std::vector< uint8_t > data_off_
void write_state(bool state) override
void write_command_(bool state)
std::vector< uint8_t > data_on_
void dump_config() override
uint32_t last_transmission_
Providing packet encoding functions for exchanging data with a remote host.
uint32_t IRAM_ATTR HOT millis()
Application App
Global storage of Application pointer - only one Application can exist.