You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sporadic system crashes especially when WiFi is not connected
OTA updates do not work and also lead to system crash and reboot
The text was updated successfully, but these errors were encountered:
urmel79
changed the title
If esp8266 cannot connect to wifi at any reason, the program stucks
If esp8266 cannot connect to wifi at any reason, the system crashes sporadically
Dec 15, 2019
[bug] external interrupts conflict with WiFi connection attempts or OTA updates and lead to sporadic crashes!
[fix (workaround)] disable external GPIO interrupts temporarily
voidconnectToWifi() {
Serial.println("Connecting to Wi-Fi...");
WiFi.mode(WIFI_STA); // client mode// [bug] external interrupts conflict with wifi connection attempts and// ota updates and lead to sporadic crashes!// [fix (workaround)] disable external interrupts temporarily// reference https://www.mikrocontroller.net/topic/460256#5573848ETS_GPIO_INTR_DISABLE();
WiFi.begin(WIFI_SSID, WIFI_PASSWORD);
// enable external interrupts againETS_GPIO_INTR_ENABLE();
}
The text was updated successfully, but these errors were encountered: