Currently you need to hardcode your SSID and password in the code
For example via:
For Arduino-ESP32, WiFiManager is effectively the standard. (apparently)
Features
- SoftAP provisioning
- Captive portal (DNS redirect)
- SSID scan + dropdown
- Automatic reconnect
- Reset on button press
#include <WiFiManager.h>
WiFiManager wm;
void setup() {
bool res;
res = wm.autoConnect("MyDevice-Setup");
if (!res) {
ESP.restart();
}
}
This
- Creates AP MyDevice-Setup
- Serves portal at 192.168.4.1
- Saves credentials in flash
- Automatically connects on next boot