I am working on an ESP32 project with the Arduino Cloud IDE.
My goal is that is should be possible that WIFI Credentials (SSID & Password) can be changed programmatically.
I believe best case these credentials should be written in the EEPROM instead of the "secrets.h".
Has anyone successfully implemented this before? Any insights would be greatly appreciated.
Hi @hballali. A community member shared their solution of using the excellent "WiFiManager" library for this purpose here:
The WiFiManager library is preinstalled on the Arduino Cloud servers, so you can use the library in your sketches without needing to install it first. There is documentation for the library here:
Note that, although it only mentions "ESP8266" in the description, this library now also supports the ESP32.
I've been working on a similar project: interfacing an OPTA with a touch HMI that allows changes to the network SSID and PASS variables over Modbus. No issues moving SSID and PASS strings between the two devices. But the OPTA has a system fail somewhere after trying to reset them.