ESPHome 2026.10.0
Loading...
Searching...
No Matches
automation.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace esphome::sx127x {
8
9template<typename... Ts> class SendPacketAction final : public Action<Ts...>, public Parented<SX127x> {
10 TEMPLATABLE_BYTES(data)
11
12 public:
13 void play(const Ts &...x) override {
14 this->data_.template visit<SX127X_MAX_PACKET_SIZE>(
15 [this](const uint8_t *data, size_t len) { this->parent_->transmit_packet(data, len); }, x...);
16 }
17};
18
19} // namespace esphome::sx127x
virtual void play(const Ts &...x)=0
Helper class to easily give an object a parent of type T.
Definition helpers.h:2004
const void size_t len
Definition hal.h:64
uint16_t x
Definition tt21100.cpp:5