mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-02-12 02:58:12 +00:00
More v2.2
This commit is contained in:
@@ -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
5
src/version.h
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
#ifndef VERSION
|
||||
#define VERSION "538de5e"
|
||||
#endif
|
||||
#define BUILD_EPOCH 1668532199
|
||||
Reference in New Issue
Block a user