How to change WIFI credentials at runtime?

aatifshaikh66
Posts: 4
Joined: Wed Oct 07, 2020 10:42 am

How to change WIFI credentials at runtime?

Postby aatifshaikh66 » Wed Dec 09, 2020 1:06 pm

Hello, I'm a little bit new to ESP32 and Arduino ID. I've been working on a project in which I want to switch the wifi network from one to another at any given time. But whenever I'm trying to close the existing connection (network) and reconnect to the new one, ESP32 crashes and gets rebooted. A bit peculiar behaviour I would say. Additionally, I even tried to use the EEPROM for the storage purpose, so, even when my ESP32 gets rebooted, it will take the updated values from the storage. Unfortunately, sometimes ESP32 crashes even when I update the variable which was being passed earlier to "WiFi.begin()". Lastly, In my application, I'll be providing the new SSID and Password through the serial (COM) port. Can anyone help in achieving this task?

Who is online

Users browsing this forum: No registered users and 73 guests