// the find
manuelbl/ttn-esp32
The Things Network device library for ESP32 (ESP-IDF) and SX127x based devices
ESP-IDF component for connecting ESP32 devices to The Things Network via LoRaWAN, targeting SX127x radio chips. It wraps the MCCI LMIC stack in a cleaner C/C++ API that handles OTAA join, uplink/downlink, NVS key storage, and deep sleep without re-joining. Aimed at embedded developers building low-power IoT nodes who don't want to deal with LMIC internals directly.
Deep sleep support that survives without rejoining is the headline feature and genuinely useful for battery-powered nodes. Dual C and C++ API is a practical choice — you can drop it into either kind of project. AT command provisioning is a nice touch for factory flashing: same binary, different credentials per device. Regional band plan coverage is solid across EU868, US915, AU915, AS923, KR920, IN866.
Last commit was August 2023 and ESP-IDF 5.x has moved fast since — compatibility with IDF 5.2+ is unverified and likely broken in spots. Built on arduino-lmic which is itself a port of a port; the abstraction layers create debugging nightmares when something goes wrong at the radio level. SX127x only means no SX126x (the newer, lower-power chips like the SX1262 found on most new boards) — this is a dead-end if you're buying hardware today. 315 stars and 64 forks for a project this old suggests limited community momentum for bug fixes.