I have been trying to use WiFi.h, WebServer.h and EEPROM.h together with ArduinoIoTCloud.h and
Arduino_ConnectionHandler.h to be able to change the WiFi credentials if required without changing the sketch and reuploading it.
The problem is when moving;
you're looking for something that connects to a previously specified access point, but becomes an access point that can reached from a browser to specify local ssid/password when unknown
Thank you so much. The problem is with using Arduino IoT Cloud as the library can't get the SSID and PASS from setup void where I add them through the access point.
that link, or something called soft AP (??) attempts to connect to wifi using a history of ssid/passwords stored in eeprom. when it doesn't find a match between any of the known ssids and the one it sees, it come up as its own AP which a browser can connect to a provide the ssid/password for the local wifi which is stored. the node then resets attempting to connect to the local wifi with the new ssid/password provided
void setup() {
Serial.begin(9600);
delay(1500);
// Code for reading from EEPROM and the eeprom_SSID and eeprom_SSID_PASS will then pass to SSID and PASS Chars
//
initProperties();
WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS);
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
setDebugMessageLevel(2);
ArduinoCloud.printDebugInfo();
}
After that, the ESP will be pushed to restart as the IoT library doesn't find the SSID and PASS.
I have tried to do so with Blynk and many other libraries, and it worked; I could enter the credentail by activating a server and creating an access point to do so, and then blynk read from that and connected perfectly. The problem is that I have to use the Arduino IoT cloud, not Blynk.
Thanks for your support.
Thank you so much for your reply. I have no problem with creating a server and access point to pass. the new credentials to be saved in the EEPROM and then read it back. The problem is only with the Arduino IoT cloud; I do not know how to make it read the SSID and PASS from the EEPROM. Or to ignore the wifi connection of that library and use simple ones without editing it as I need a licence for that. i submit a sample of the code in the comment. thanks
did someone found the solution for that problem.
I encounter the same problem.
I would really like to be able to change the wifi credential via a webpage rather than uploading a new version of the sketch with the hard coded values.
same issue here. I'm looking for a way to change the SSID and password using the ArduinoIOTCloud lib without uploading a new sketch. I can't find any solution for this..
As blynk has many limitations in sharing a dashboard with another user, I still prefer Arduino IoT, especially now that I can update ESP32 over Air. I still can't find a solution to change the WiFi credential using the Access point. I tried almost everything I could. It is a really big problem when moving the device somewhere, and I need to change the WiFi, but I do not have my PC to upload the code again. Also, if the user is unfamiliar with coding and IDE, I must go to his place to change those credentials. Any help, please?