7 static const char *
const TAG =
"uart.switch";
11 const uint32_t now =
millis();
20 ESP_LOGD(TAG,
"'%s': Sending data...", this->
get_name().c_str());
40 LOG_SWITCH(
"",
"UART Switch",
this);
42 ESP_LOGCONFIG(TAG,
" Send Every: %u", this->
send_every_);
void write_array(const uint8_t *data, size_t len)
uint32_t IRAM_ATTR HOT millis()
void dump_config() override
uint32_t last_transmission_
std::vector< uint8_t > data_
void write_state(bool state) override
void publish_state(bool state)
Publish a state to the front-end from the back-end.
bool state
The current reported state of the binary sensor.
const StringRef & get_name() const