|
@ -221,6 +221,7 @@ void ahoywifi::sendNTPpacket(IPAddress& address) { |
|
|
if(mConnected) { |
|
|
if(mConnected) { |
|
|
mConnected = false; |
|
|
mConnected = false; |
|
|
mReconnect = true; |
|
|
mReconnect = true; |
|
|
|
|
|
mCnt = 0; |
|
|
DPRINTLN(DBG_INFO, "[WiFi] Connection Lost"); |
|
|
DPRINTLN(DBG_INFO, "[WiFi] Connection Lost"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -239,13 +240,15 @@ void ahoywifi::sendNTPpacket(IPAddress& address) { |
|
|
WiFi.begin(); |
|
|
WiFi.begin(); |
|
|
DBGPRINTLN(F("[WiFi] AP disabled")); |
|
|
DBGPRINTLN(F("[WiFi] AP disabled")); |
|
|
mDns.stop(); |
|
|
mDns.stop(); |
|
|
|
|
|
mReconnect = false; |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
|
case SYSTEM_EVENT_STA_DISCONNECTED: |
|
|
case SYSTEM_EVENT_STA_DISCONNECTED: |
|
|
if(mConnected) { |
|
|
if(mConnected) { |
|
|
mConnected = false; |
|
|
mConnected = false; |
|
|
|
|
|
mReconnect = true; |
|
|
|
|
|
mCnt = 0; |
|
|
DPRINTLN(DBG_INFO, "[WiFi] Connection Lost"); |
|
|
DPRINTLN(DBG_INFO, "[WiFi] Connection Lost"); |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|