Skip to content

Commit 83484a7

Browse files
committed
Call m2m_wifi_handle_events from WiFiClass::status()
For sketches that want to check the WiFi status and re-connect if disconnected.
1 parent 24858ba commit 83484a7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/WiFi.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,9 @@ uint8_t WiFiClass::status()
631631
if (!_init) {
632632
init();
633633
}
634+
635+
m2m_wifi_handle_events(NULL);
636+
634637
return _status;
635638
}
636639

0 commit comments

Comments
 (0)