Change WiFi network in ESP8266WebConfig

Hello everyone, I am using this example and it works fine, but how can I configure a new Wi-Fi network again? I can no longer connect from my cell phone to the NodeMCU8266.
Thank you!


The device should show the wifi configuration when it cannot reach the wifi network configured.

Hope this helps.

Hi ega, thanks for responding.
But it is not possible to change the Wi-Fi network in another way? The thing is that where I have the device installed there are 3 Wi-Fi networks, I want to change it to another one and I can’t.

Change in the Arduino IDE the Tools settings for the device from Erase Flash (Only sketch) to (Sketch + WiFi settings)

Hello rin67630, thanks for responding.
By changing this setting I can now configure it once programmed.
I would like to be able to change the wifi credentials without having to reprogram the module


I guess what you want could be achieved by the thing.clean_credentials(); command, I would create a thing without input or output resources just this command and would check on debug window if it cleans the wifi configuration when is called that thing.

Let us know how it goes.

Hello ega, this works perfectly, it was what I needed. Thank you so much!
I did it like this.