More v2.2

This commit is contained in:
Gunnar Skjold
2022-11-23 20:52:37 +01:00
parent 902e43979b
commit d4d9d2224f
21 changed files with 401 additions and 157 deletions

View File

@@ -762,14 +762,14 @@ void swapWifiMode() {
if (mode != WIFI_AP || !config.hasConfig()) {
if(Debug.isActive(RemoteDebug::INFO)) debugI("Swapping to AP mode");
WiFi.softAP((char*) F("AMS2MQTT"));
WiFi.softAP(PSTR("AMS2MQTT"));
WiFi.mode(WIFI_AP);
if(dnsServer == NULL) {
dnsServer = new DNSServer();
}
dnsServer->setErrorReplyCode(DNSReplyCode::NoError);
dnsServer->start(53, (char*) F("*"), WiFi.softAPIP());
dnsServer->start(53, PSTR("*"), WiFi.softAPIP());
} else {
if(Debug.isActive(RemoteDebug::INFO)) debugI("Swapping to STA mode");
if(dnsServer != NULL) {

5
src/version.h Normal file
View File

@@ -0,0 +1,5 @@
#ifndef VERSION
#define VERSION "538de5e"
#endif
#define BUILD_EPOCH 1668532199