Skip to content

Commit 82b2f39

Browse files
committed
update codes, add WIFI DISCONNECT.
1 parent 5655bfb commit 82b2f39

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/Adapters/BlinkerMQTT.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2837,6 +2837,7 @@ bool BlinkerMQTT::checkInit()
28372837
if (millis() - _connectTime > 15000)
28382838
{
28392839
BLINKER_LOG(BLINKER_F("APConfig timeout."));
2840+
WiFi.disconnect();
28402841
_configStatus = APCFG_TIMEOUT;
28412842
}
28422843
return false;

src/Adapters/BlinkerPROESP.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3237,6 +3237,7 @@ bool BlinkerWlan::connected() {
32373237
BLINKER_LOG(BLINKER_F("APConfig time out"));
32383238

32393239
// WiFi.stopSmartConfig();
3240+
WiFi.disconnect();
32403241
_status = BWL_APCONFIG_TIMEOUT;
32413242
}
32423243
return false;

0 commit comments

Comments
 (0)