Skip to content

Commit

Permalink
fix issue 1081 and 1086 Wifi connection error when using STATIC IP se…
Browse files Browse the repository at this point in the history
…ttings (espressif#1129)
  • Loading branch information
baggior authored and Curclamas committed Aug 21, 2018
1 parent f58195f commit c295a92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/WiFi/src/WiFiGeneric.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ esp_err_t WiFiGenericClass::_eventCallback(void *arg, system_event_t *event)
} else if(event->event_id == SYSTEM_EVENT_STA_CONNECTED) {
WiFiSTAClass::_setStatus(WL_IDLE_STATUS);
} else if(event->event_id == SYSTEM_EVENT_STA_GOT_IP) {
if(WiFiSTAClass::status() == WL_IDLE_STATUS) {
//#1081 https://github.com/espressif/arduino-esp32/issues/1081
// if(WiFiSTAClass::status() == WL_IDLE_STATUS)
{
WiFiSTAClass::_setStatus(WL_CONNECTED);
}
}
Expand Down

0 comments on commit c295a92

Please sign in to comment.