From c51396a170f51296bbf6fef966658325f1fad3a7 Mon Sep 17 00:00:00 2001 From: Gregg Date: Wed, 30 Sep 2020 07:24:15 -0500 Subject: [PATCH] Moved MAX_SSID and MAX_PWD from Settings.h to Network.h --- src/Network.h | 4 ++++ src/Settings.h | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Network.h b/src/Network.h index d374762..671a2e2 100644 --- a/src/Network.h +++ b/src/Network.h @@ -7,11 +7,15 @@ using std::unordered_set; +const int MAX_SSID=32; // max number of characters in WiFi SSID +const int MAX_PWD=64; // max number of characters in WiFi Password + /////////////////////////////// struct Network { const int MAX_HTTP=4095; // max number of bytes in HTTP message + char *apPassword=DEFAULT_AP_PASSWORD; // Access Point password (does not need to be secret - only used to ensure excrypted WiFi connection) unsigned long lifetime=DEFAULT_AP_TIMEOUT*1000; // length of time (in milliseconds) to keep Access Point alive before shutting down and re-starting diff --git a/src/Settings.h b/src/Settings.h index e25a928..0a795bb 100644 --- a/src/Settings.h +++ b/src/Settings.h @@ -32,12 +32,6 @@ const int MAX_CONNECTIONS=8; -////////////////////////////////////////////////////// -// Maximum characters in WiFi SSID and Password // - -const int MAX_SSID=32; -const int MAX_PWD=64; - ///////////////////////////////////////////////////// // Message Log Level Control Macros // // 0=Minimal, 1=Informative, 2=All //