ESP.restart() goes into infinite loop
Posted: Thu Aug 13, 2020 7:05 am
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.
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.