25 void play(
const Ts &...
x)
override {
26 if (this->
len_ >= 0) {
28 this->
parent_->write_array(this->
code_.
data,
static_cast<size_t>(this->len_));
39 std::vector<uint8_t> (*
func)(Ts...);
Helper class to easily give an object a parent of type T.
void play(const Ts &...x) override
union esphome::uart::UARTWriteAction::Code code_
void set_data_template(std::vector< uint8_t >(*func)(Ts...))
void set_data_static(const uint8_t *data, size_t len)
Providing packet encoding functions for exchanging data with a remote host.
std::vector< uint8_t >(* func)(Ts...)