Simple Runtime Wi-Fi Configuration via SoftAP and Web Server (ESP-IDF v5.5)
Posted: Tue Mar 17, 2026 5:33 pm
Hi everyone,
I would like to share a small educational project I've recently finished. It demonstrates how to configure Wi-Fi credentials on an ESP32 during runtime, avoiding the need to hardcode SSID and password into the firmware.
How it works:
GitHub Repository: https://github.com/Valerii-Z/esp32-runt ... me-ov-file
Any feedback or suggestions are highly appreciated!
Best regards,
Valerii
I would like to share a small educational project I've recently finished. It demonstrates how to configure Wi-Fi credentials on an ESP32 during runtime, avoiding the need to hardcode SSID and password into the firmware.
How it works:
- On boot, the device checks NVS for existing Wi-Fi credentials.
- If credentials are missing or the connection fails, the ESP32 starts in SoftAP mode.
- It then launches a simple HTTP configuration server and scans for available networks.
- User connects to the SoftAP, selects a network via a web interface, and enters the password.
- The device saves the new credentials to NVS and reboots to connect in STA mode.
- Built with ESP-IDF v5.5 (compatible with v5.x).
- Uses native event loop and netif handlers.
- Clean and commented C code (main.c only for simplicity).
- Includes a basic HTML/CSS interface for the configuration page (screenshots available in README).
GitHub Repository: https://github.com/Valerii-Z/esp32-runt ... me-ov-file
Any feedback or suggestions are highly appreciated!
Best regards,
Valerii