Skip to content

Commit c295a92

Browse files
baggiorCurclamas
authored andcommitted
fix issue 1081 and 1086 Wifi connection error when using STATIC IP settings (espressif#1129)
1 parent f58195f commit c295a92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/WiFi/src/WiFiGeneric.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,9 @@ esp_err_t WiFiGenericClass::_eventCallback(void *arg, system_event_t *event)
316316
} else if(event->event_id == SYSTEM_EVENT_STA_CONNECTED) {
317317
WiFiSTAClass::_setStatus(WL_IDLE_STATUS);
318318
} else if(event->event_id == SYSTEM_EVENT_STA_GOT_IP) {
319-
if(WiFiSTAClass::status() == WL_IDLE_STATUS) {
319+
//#1081 https://github.com/espressif/arduino-esp32/issues/1081
320+
// if(WiFiSTAClass::status() == WL_IDLE_STATUS)
321+
{
320322
WiFiSTAClass::_setStatus(WL_CONNECTED);
321323
}
322324
}

0 commit comments

Comments
 (0)