ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
sx127x_transport.h
Go to the documentation of this file.
1#pragma once
2
6#include <vector>
7
8namespace esphome::sx127x {
9
11 public:
12 void setup() override;
13 void on_packet(const std::vector<uint8_t> &packet, float rssi, float snr) override;
14 float get_setup_priority() const override { return setup_priority::AFTER_WIFI; }
15
16 protected:
17 void send_packet(const std::vector<uint8_t> &buf) const override;
18 bool should_send() override { return true; }
19 size_t get_max_packet_size() override { return this->parent_->get_max_packet_size(); }
20};
21
22} // namespace esphome::sx127x
Helper class to easily give an object a parent of type T.
Definition helpers.h:1861
void send_packet(const std::vector< uint8_t > &buf) const override
void on_packet(const std::vector< uint8_t > &packet, float rssi, float snr) override
float get_setup_priority() const override
constexpr float AFTER_WIFI
For components that should be initialized after WiFi is connected.
Definition component.h:53