Correct advanced network parameter setup on ESP (#878)

#790
This commit is contained in:
Florian authored and GitHub committed 2021-02-26 19:44:20 -06:00
1 parent 28ff1a553a
commit cd282596e0
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -62,8 +62,8 @@
/*-------------DEFINE YOUR NETWORK PARAMETERS BELOW----------------*/
//#define NetworkAdvancedSetup true //uncomment if you want to set advanced network parameters for arduino boards, not uncommented you can set the IP and mac only
#ifdef NetworkAdvancedSetup // for arduino boards advanced config
//#define NetworkAdvancedSetup true //uncomment if you want to set advanced network parameters, not uncommented you can set the IP and mac only
#ifdef NetworkAdvancedSetup
# if defined(ESP8266) || defined(ESP32)
const byte ip[] = {192, 168, 1, 99}; //ip adress of the gateway, already defined for arduino below
# endif
+1 -1
View File
@@ -879,7 +879,7 @@ void setup_wifi() {
// We start by connecting to a WiFi network
Log.trace(F("Connecting to %s" CR), manual_wifi_ssid);
# ifdef ESPWifiAdvancedSetup
# ifdef NetworkAdvancedSetup
IPAddress ip_adress(ip);
IPAddress gateway_adress(gateway);
IPAddress subnet_adress(subnet);