Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)
User avatar
By Ahmed Ahmed
#72331 Hi :) :)

I have a problem with ESP12E, as follows:

I have implemented a serial to wifi bridge that I can convert any USB to wifi communication, I'm facing problem now, as I provide two modes of connection to the ESP, the first is WiFi_STA and the second mode is WiFi_AP, it works fine, but if I forgot the password of my router, and the ESP can't forget my router connection, so, I need a reliable programmatic way of clearing or resetting only the wifi connection to its default without affecting EEPROM or flash in order not to delete Arduino bootloader.

Please help me .... :)

Thanks in advance ....
User avatar
By philbowles
#72384 Try:
Code: Select all   WiFi.disconnect();
   ESP.eraseConfig();
   while(1);// deliberate crash (restart doesn't properly clear config!)