|
Home IO Control
ESPHome add-on for IO-Homecontrol devices
|
Receives transmit events from ExchangeEngine::transmit_frame(). More...
#include <transmit_observer.h>
Public Member Functions | |
| virtual | ~TransmitObserver ()=default |
| virtual void | on_lbt_defer (int16_t rssi_dbm) |
| The channel was busy, so transmit_frame() backs off once before trying again. | |
| virtual void | on_transmit (const IoFrame &frame, const RadioTxConfig &config, uint8_t wire_len) |
| The radio accepted a frame for transmission (send_packet() returned true). | |
Receives transmit events from ExchangeEngine::transmit_frame().
Both callbacks default to no-ops, so an observer overrides only what it records. They run synchronously inside transmit_frame(), on the main loop: keep them cheap and never transmit from one.
Definition at line 25 of file transmit_observer.h.
|
virtualdefault |
|
inlinevirtual |
The channel was busy, so transmit_frame() backs off once before trying again.
| rssi_dbm | The RSSI reading that deferred the transmit. |
Reimplemented in esphome::home_io_control::PairingTelemetry.
Definition at line 31 of file transmit_observer.h.
|
inlinevirtual |
The radio accepted a frame for transmission (send_packet() returned true).
Not called when serialization or send_packet() fails.
| frame | The logical frame that was sent. |
| config | The TX shape it was sent with (frequency, preamble length). |
| wire_len | Serialized length in bytes as handed to the radio. |
Reimplemented in esphome::home_io_control::PairingTelemetry.
Definition at line 38 of file transmit_observer.h.