AP Access problem BugFix

This commit is contained in:
Charles 2016-07-26 18:29:56 +02:00
parent d2b5a16450
commit 8fcf897859
1 changed files with 7 additions and 0 deletions

View File

@ -475,6 +475,13 @@ int WifiHandleConn(boolean setup = false)
DebuglnF("Error!");
Debugflush();
// STA+AP Mode without connected to STA, autoconnect will search
// other frequencies while trying to connect, this is causing issue
// to AP mode, so disconnect will avoid this
// Disable auto retry search channel
WiFi.disconnect();
// SSID = hostname
strcpy(ap_ssid, config.host );
DebugF("Switching to AP ");