ESPHome 2025.7.1
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 update() override;
15 void on_packet(const std::vector<uint8_t> &packet, float rssi, float snr) override;
16 float get_setup_priority() const override { return setup_priority::AFTER_WIFI; }
17
18 protected:
19 void send_packet(const std::vector<uint8_t> &buf) const override;
20 bool should_send() override { return true; }
21 size_t get_max_packet_size() override { return this->parent_->get_max_packet_size(); }
22};
23
24} // namespace sx126x
25} // namespace esphome
Helper class to easily give an object a parent of type T.
Definition helpers.h:599
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:53
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7