-->
Page 1 of 1

ESP.restart() goes into infinite loop

PostPosted: Thu Aug 13, 2020 7:05 am
by Tekken
I have this strange problem with the ESP8266 latest 2.7.1 community library.
I use a wifi check code to see if the device is connected to the AP if not it tries to reconnect with a delay 30 times if it cannot then it invokes ESP.restart() to restart the device.

I have the same code loaded into 10 different ESP8266 D1 minis, it's the exact same hardware however on 1 (the rest of the main program works just fine) this restart goes into an infinite loop and I would like to understand it why.

Re: ESP.restart() goes into infinite loop

PostPosted: Sun Aug 16, 2020 6:06 am
by eriksl
I am guessing here you are using Arduino?

Re: ESP.restart() goes into infinite loop

PostPosted: Fri Aug 28, 2020 8:28 am
by atefth
Hello,

If you are using Arduino IDE try to erase all the flash memory when you load the sketch, it is in tools tab.

This is will erase the eeprom as well.