Making it work on 8266

This commit is contained in:
Gunnar Skjold
2022-11-29 20:50:36 +01:00
parent 02ae3fc7f5
commit 63a8d79b95
2 changed files with 127 additions and 123 deletions

View File

@@ -766,6 +766,10 @@ void swapWifiMode() {
}
dnsServer->setErrorReplyCode(DNSReplyCode::NoError);
dnsServer->start(53, PSTR("*"), WiFi.softAPIP());
#if defined(DEBUG_MODE)
Debug.setSerialEnabled(true);
Debug.begin("192.168.4.1", 23, RemoteDebug::VERBOSE);
#endif
} else {
if(Debug.isActive(RemoteDebug::INFO)) debugI("Swapping to STA mode");
if(dnsServer != NULL) {