mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-04-09 18:53:13 +02:00
Feature: Admin AccessPoint Timeout now configurable
Make the administrative accesspoint timeout configurable. The default value is 3 minutes, values from 0-99999 are possible, where 0 means infinite (no timeout). Signed-off-by: Martin Dummer <martin.dummer@gmx.net>
This commit is contained in:
committed by
Thomas Basler
parent
2e25fdcf8f
commit
8bfa7e530c
@@ -39,6 +39,7 @@ bool ConfigurationClass::write()
|
||||
wifi["dns2"] = IPAddress(config.WiFi_Dns2).toString();
|
||||
wifi["dhcp"] = config.WiFi_Dhcp;
|
||||
wifi["hostname"] = config.WiFi_Hostname;
|
||||
wifi["aptimeout"] = config.WiFi_ApTimeout;
|
||||
|
||||
JsonObject ntp = doc.createNestedObject("ntp");
|
||||
ntp["server"] = config.Ntp_Server;
|
||||
@@ -184,6 +185,7 @@ bool ConfigurationClass::read()
|
||||
config.WiFi_Dns2[3] = wifi_dns2[3];
|
||||
|
||||
config.WiFi_Dhcp = wifi["dhcp"] | WIFI_DHCP;
|
||||
config.WiFi_ApTimeout = wifi["aptimeout"] | ACCESS_POINT_TIMEOUT;
|
||||
|
||||
JsonObject ntp = doc["ntp"];
|
||||
strlcpy(config.Ntp_Server, ntp["server"] | NTP_SERVER, sizeof(config.Ntp_Server));
|
||||
|
||||
Reference in New Issue
Block a user