ESPHome 2026.11.0-dev
Loading...
Searching...
No Matches
uart_button.cpp
Go to the documentation of this file.
1#include "uart_button.h"
2#include "esphome/core/log.h"
3
4namespace esphome::uart {
5
6ESPHOME_LOG_TAG(TAG, "uart.button");
7
9 ESP_LOGD(TAG, "'%s': Sending data", LOG_STR_ARG(this->get_log_name()));
10 this->write_array_progmem(this->data_, this->data_len_);
11}
12
13void UARTButton::dump_config() { LOG_BUTTON("", "UART Button", this); }
14
15} // namespace esphome::uart
const LogString * get_log_name() const
Get the name for a "%s" log argument (LOG_STR_ARG).
void press_action() override
void dump_config() override
const uint8_t * data_
Definition uart_button.h:20
void write_array_progmem(const uint8_t *data, size_t len)
Definition uart.h:31
ESPHOME_LOG_TAG(TAG, "uart.binary_sensor")