ESP32 as an Access Point with the ability to store WiFi credentials (and other configurational data)
Posted: Tue Jan 10, 2017 1:17 am
ESP32 provides a great API for managing WiFi connections and I'm looking for code example/snippets, which would allow to accomplish the following:
1. When ESP32 starts if verifies if there is any configurational data stored.
2. If there is NO configurational data, then it runs in a WiFi Access Point mode and serves HTML page, where a user can specify WiFi credentials and other configurational data in key-value pairs format (NVS?)
3. if there IS configurational data stored, then ESP32 runs in a standard WiFi mode (as a station) and performs common tasks using stored configurational data.
Do you guys have / know any code examples which can help? I did try access point example (thanks Neil!), it works fine, just need a bit more (how to serve HTML page and store data?).
Essentially I want to have something what ESP32-Duktape provides at the very first setup step (again, Neil!), but I want to have my custom HTML page with a custom configurational data, so ESP32 can use that data for common tasks (let's say I want to specify # of LEDs to blink or URL to perform HTTP request etc.)
- Andrew
1. When ESP32 starts if verifies if there is any configurational data stored.
2. If there is NO configurational data, then it runs in a WiFi Access Point mode and serves HTML page, where a user can specify WiFi credentials and other configurational data in key-value pairs format (NVS?)
3. if there IS configurational data stored, then ESP32 runs in a standard WiFi mode (as a station) and performs common tasks using stored configurational data.
Do you guys have / know any code examples which can help? I did try access point example (thanks Neil!), it works fine, just need a bit more (how to serve HTML page and store data?).
Essentially I want to have something what ESP32-Duktape provides at the very first setup step (again, Neil!), but I want to have my custom HTML page with a custom configurational data, so ESP32 can use that data for common tasks (let's say I want to specify # of LEDs to blink or URL to perform HTTP request etc.)
- Andrew