1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-15 00:02:49 +03:00

add more debug for disconnect

add isConnected function for easier usage
This commit is contained in:
Markus Sattler
2015-12-30 17:40:36 +01:00
parent 00cd8e6f50
commit db4076fd41
3 changed files with 12 additions and 0 deletions

View File

@ -106,6 +106,7 @@ void ESP8266WiFiGenericClass::_eventCallback(void* arg) {
DEBUGV("wifi evt: %d\n", event->event);
if(event->event == EVENT_STAMODE_DISCONNECTED) {
DEBUGV("STA disconnect: %d\n", event->event_info.disconnected.reason);
WiFiClient::stopAll();
}