|
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 TX 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 sent a frame (send_packet() returned SENT). | |
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 TX channel was busy, so transmit_frame() backs off once before trying again.
| rssi_dbm | The level the radio measured on the TX channel (TxResult::cca_level_dbm). |
Reimplemented in esphome::home_io_control::PairingTelemetry.
Definition at line 31 of file transmit_observer.h.
|
inlinevirtual |
The radio sent a frame (send_packet() returned SENT).
Not called when serialization or send_packet() fails, nor for a send the clear-channel check turned away.
| frame | The logical frame that was sent. |
| config | The TX shape it was sent with (frequency, preamble length, wake-up level, and the clear-channel threshold if that send was checked). |
| wire_len | Serialized length in bytes as handed to the radio. |
Reimplemented in esphome::home_io_control::PairingTelemetry.
Definition at line 39 of file transmit_observer.h.