From cd282596e0ce5d7e6fa728804a43634fdc2729a2 Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Fri, 26 Feb 2021 19:44:20 -0600 Subject: [PATCH] Correct advanced network parameter setup on ESP (#878) #790 --- main/User_config.h | 4 ++-- main/main.ino | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/User_config.h b/main/User_config.h index 285b5d6..ac5def2 100755 --- a/main/User_config.h +++ b/main/User_config.h @@ -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 diff --git a/main/main.ino b/main/main.ino index aaa2fdd..cab2c45 100644 --- a/main/main.ino +++ b/main/main.ino @@ -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);