ESPHome 2026.1.0-dev
Loading...
Searching...
No Matches
sx126x_transport.h
Go to the documentation of this file.
1#pragma once
2
6#include <vector>
7
8namespace esphome {
9namespace sx126x {
10
12 public:
13 void setup() override;
14 void on_packet(const std::vector<uint8_t> &packet, float rssi, float snr) override;
15 float get_setup_priority() const override { return setup_priority::AFTER_WIFI; }
16
17 protected:
18 void send_packet(const std::vector<uint8_t> &buf) const override;
19 bool should_send() override { return true; }
20 size_t get_max_packet_size() override { return this->parent_->get_max_packet_size(); }
21};
22
23} // namespace sx126x
24} // namespace esphome
Helper class to easily give an object a parent of type T.
Definition helpers.h:1102
float get_setup_priority() const override
void on_packet(const std::vector< uint8_t > &packet, float rssi, float snr) override
void send_packet(const std::vector< uint8_t > &buf) const override
const float AFTER_WIFI
For components that should be initialized after WiFi is connected.
Definition component.cpp:88
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7