ESPHome 2025.7.1
Loading...
Searching...
No Matches
sx127x_transport.cpp
Go to the documentation of this file.
1#include "esphome/core/log.h"
3#include "sx127x_transport.h"
4
5namespace esphome {
6namespace sx127x {
7
8static const char *const TAG = "sx127x_transport";
9
11 PacketTransport::setup();
12 this->parent_->register_listener(this);
13}
14
16 PacketTransport::update();
17 this->updated_ = true;
18 this->resend_data_ = true;
19}
20
21void SX127xTransport::send_packet(const std::vector<uint8_t> &buf) const { this->parent_->transmit_packet(buf); }
22
23void SX127xTransport::on_packet(const std::vector<uint8_t> &packet, float rssi, float snr) { this->process_(packet); }
24
25} // namespace sx127x
26} // namespace esphome
void process_(const std::vector< uint8_t > &data)
Process a received packet.
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
const char *const TAG
Definition spi.cpp:8
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7