mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-01-03 11:28:22 +01: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
@@ -61,6 +61,7 @@ struct CONFIG_T {
|
||||
byte WiFi_Dns2[4];
|
||||
bool WiFi_Dhcp;
|
||||
char WiFi_Hostname[WIFI_MAX_HOSTNAME_STRLEN + 1];
|
||||
uint WiFi_ApTimeout;
|
||||
|
||||
char Ntp_Server[NTP_MAX_SERVER_STRLEN + 1];
|
||||
char Ntp_Timezone[NTP_MAX_TIMEZONE_STRLEN + 1];
|
||||
|
||||
@@ -64,6 +64,7 @@ private:
|
||||
bool adminEnabled = true;
|
||||
bool forceDisconnection = false;
|
||||
int adminTimeoutCounter = 0;
|
||||
int adminTimeoutCounterMax = 0;
|
||||
int connectTimeoutTimer = 0;
|
||||
int connectRedoTimer = 0;
|
||||
uint32_t lastTimerCall = 0;
|
||||
|
||||
@@ -63,6 +63,7 @@ enum WebApiError {
|
||||
NetworkGatewayInvalid,
|
||||
NetworkDns1Invalid,
|
||||
NetworkDns2Invalid,
|
||||
NetworkApTimeoutInvalid,
|
||||
|
||||
NtpBase = 9000,
|
||||
NtpServerLength,
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
|
||||
#define ACCESS_POINT_NAME "OpenDTU-"
|
||||
#define ACCESS_POINT_PASSWORD "openDTU42"
|
||||
#define ACCESS_POINT_TIMEOUT 3;
|
||||
#define AUTH_USERNAME "admin"
|
||||
#define SECURITY_ALLOW_READONLY true
|
||||
|
||||
#define ADMIN_TIMEOUT 180
|
||||
#define WIFI_RECONNECT_TIMEOUT 15
|
||||
#define WIFI_RECONNECT_REDO_TIMEOUT 600
|
||||
|
||||
|
||||
Reference in New Issue
Block a user