24 void play(
const Ts &...
x)
override {
25 if (this->
len_ >= 0) {
27 this->
parent_->send_packet(this->
data_.
data,
static_cast<size_t>(this->len_));
38 std::vector<uint8_t> (*
func)(Ts...);
Helper class to easily give an object a parent of type T.
void set_data_static(const uint8_t *data, size_t len)
void play(const Ts &...x) override
union esphome::udp::UDPWriteAction::Data data_
void set_data_template(std::vector< uint8_t >(*func)(Ts...))
Providing packet encoding functions for exchanging data with a remote host.
std::vector< uint8_t >(* func)(Ts...)