How swoboda1337/sx127x-esphome works
This deprecated ESPHome component configures SX1276/77/78/79 radios and exposes LoRa or FSK/OOK packet transmission and reception. The main workflow is ESPHome configuration into radio setup, then packet TX/RX through the radio; received packets are dispatched to listeners and the on-packet trigger. An optional packet-transport adapter bridges ESPHome packet transport to the radio. The excerpts establish these paths, but omit some implementation details, so the graph avoids claims about their internal mechanics.
Main entry points: sx127x.cpp SX127x driver · sx127x_transport.cpp Packet transport adapter · packet_transport/__init__.py Transport config · sx127x/__init__.py Component config
Components 12
ESPHome integration
- Component config
components/sx127x/__init__.py
Radio runtime
- SX127x driver
components/sx127x/sx127x.cpp - Driver API
components/sx127x/sx127x.h - Register definitions
components/sx127x/sx127x_reg.h - Packet trigger
components/sx127x/sx127x.h
Actions and transport
- Automation actions
components/sx127x/automation.h - Transport config
components/sx127x/packet_transport/__init__.py - Packet transport adapter
components/sx127x/packet_transport/sx127x_transport.cpp
Other components
- ESPHome user
- SPI bus
- SX127x radio
- ESPHome packet transport
Connections 14
- ESPHome user → Component config: provides config
- Component config → SX127x driver: configures
- SX127x driver → Register definitions: uses definitions
- SX127x driver → SPI bus: reads and writes
- SPI bus → SX127x radio: transfers registers
- Automation actions → SX127x driver: invokes radio
- SX127x driver → SX127x radio: transmits packets
- SX127x radio → SX127x driver: signals received data
- SX127x driver → Packet trigger: triggers packet
- Transport config → Packet transport adapter: configures
- Transport config → SX127x driver: sets parent
- Packet transport adapter → SX127x driver: transmits packets
- SX127x driver → Packet transport adapter: dispatches packets
- Packet transport adapter → ESPHome packet transport: processes packets