ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
sx1231_transport.cpp
Go to the documentation of this file.
1#include "sx1231_transport.h"
2
3namespace esphome::sx1231 {
4
6 PacketTransport::setup();
7 this->parent_->register_listener(this);
8}
9
10void SX1231Transport::send_packet(const std::vector<uint8_t> &buf) const { this->parent_->transmit_packet(buf); }
11
12void SX1231Transport::on_packet(std::span<const uint8_t> packet, float rssi, float snr) { this->process_(packet); }
13
14} // namespace esphome::sx1231
void process_(std::span< const uint8_t > data)
Process a received packet.
void send_packet(const std::vector< uint8_t > &buf) const override
void on_packet(std::span< const uint8_t > packet, float rssi, float snr) override