# ESP32 Captive Portal
This ESP-IDF component implements a WiFi captive portal using a SoftAP and embedded HTML.
Ideal for onboarding accessories to a network.
## Usage
```c
wifi_config_init("MyDevice", NULL, on_wifi_ready);
```
- Automatically starts captive portal if no credentials are stored.
- Saves SSID/password to NVS.
- Calls your callback when WiFi is ready.
## Files
- `wifi_config.c/h` – main logic
- `form_urlencoded.c/h` – form parser
- `index.html` – embedded HTML UI
## License
MIT © 2025 Achim Pieters | StudioPieters®
idf.py add-dependency "achimpieters/esp32-captive_portal^0.0.2"