Created a "variableInput.h" file for editing variables in one place; instead of searching multiple lines of code, to find lines needing editing.
// variableInput.h
//
// User defineable variables; one location for editing variables
// Replace with your network details
#define host = "esp32"
#define ssid = "YOURSSID"
#define password = "YOURPASSWORD"
//NTP Time Servers
#define udpAddress1 = "198.50.238.156" //NTP Time server
#define udpAddress2 = "132.163.96.3" //NTP Time server
//publicIP accessiable over Internet with Port Forwarding; know the risks!!!
//WAN IP Address. Or use LAN IP Address --same as server ip; no Internet access.
#define publicIP = "YOURPUBLICIP"
#define LISTEN_PORT 8030 //default listening Port 80 for "GET" requests.
//Graphing requires "FREE" "ThingSpeak.com" account..
//Enter "ThingSpeak.com" data here....
//iframes of graphed data are available from "ThingSpeak.com."
#define myChannelNumber = 123456
#define myWriteAPIKey = "E12345"
//FTP Credentials
#define ftpUser = "FTPUSER"
#define ftpPassword = "FTPPASSWORD"
//setting the addresses
#define ip(10,0,0,200);
#define gateway(10,0,0,1);
#define subnet(255, 255, 255, 0);
#define dns(10,0,0,1);
//Restricted access to client ip list.
#define Restricted = "/ANYNAME"
//OTA Credentials
//default username: USERNAME
//default password: PASSWORD
// "setting the addresses" is the part that I do not understand.
Segment of related code from "wifi_Start" function:
//setting the addresses
IPAddress ip;
IPAddress gateway;
IPAddress subnet;
IPAddress dns;
Is there a solution?
William