Moved MAX_SSID and MAX_PWD from Settings.h to Network.h

This commit is contained in:
Gregg 2020-09-30 07:24:15 -05:00
parent ba66c6f01a
commit c51396a170
2 changed files with 4 additions and 6 deletions

View File

@ -7,11 +7,15 @@
using std::unordered_set; 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 { struct Network {
const int MAX_HTTP=4095; // max number of bytes in HTTP message 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) 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 unsigned long lifetime=DEFAULT_AP_TIMEOUT*1000; // length of time (in milliseconds) to keep Access Point alive before shutting down and re-starting

View File

@ -32,12 +32,6 @@
const int MAX_CONNECTIONS=8; 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 // // Message Log Level Control Macros //
// 0=Minimal, 1=Informative, 2=All // // 0=Minimal, 1=Informative, 2=All //