8000 fix issue 1081 and 1086 Wifi connection error when using STATIC IP se… · lsacheto/arduino-esp32@bb8b255 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bb8b255

Browse files
baggiorme-no-dev
authored andcommitted
fix issue 1081 and 1086 Wifi connection error when using STATIC IP settings (espressif#1129)
1 parent e2f7736 commit bb8b255

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/WiFi/src/WiFiGeneric.cpp

Lines changed: 3 additions & 1 deletion
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)
0