Wi-Fi state manager component for ESP-IDF (C++): architecture feedback
Posted: Tue Feb 03, 2026 4:19 am
Hi,
I built a Wi-Fi manager component for ESP-IDF and looking for feedback on the architecture and component registry guidelines:
https://components.espressif.com/compon ... ons/1.0.0/
https://github.com/aluiziotomazelli/wifi_manager
The component wraps esp_wifi with a state machine and runs Wi-Fi operations in a dedicated task.
Key points:
- state machine based on a freertos task
- reconnection with exponencial backoff
- credentials persistence via esp_wifi driver itself NVS, and a valid flag in a class NVS
- C++ API, usable from C
Known limitations:
- no provisioning
- no RSSI evaluation
- WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT currently treated only as auth failure
Appreciate thoughts on overall design, edge cases, and better handling of failures.
Thanks.
I built a Wi-Fi manager component for ESP-IDF and looking for feedback on the architecture and component registry guidelines:
https://components.espressif.com/compon ... ons/1.0.0/
https://github.com/aluiziotomazelli/wifi_manager
The component wraps esp_wifi with a state machine and runs Wi-Fi operations in a dedicated task.
Key points:
- state machine based on a freertos task
- reconnection with exponencial backoff
- credentials persistence via esp_wifi driver itself NVS, and a valid flag in a class NVS
- C++ API, usable from C
Known limitations:
- no provisioning
- no RSSI evaluation
- WIFI_REASON_4WAY_HANDSHAKE_TIMEOUT currently treated only as auth failure
Appreciate thoughts on overall design, edge cases, and better handling of failures.
Thanks.