diff --git a/main/User_config.h b/main/User_config.h index 77951bd..27668a4 100644 --- a/main/User_config.h +++ b/main/User_config.h @@ -54,10 +54,12 @@ #define Base_Topic "home/" /*-------------DEFINE YOUR NETWORK PARAMETERS BELOW----------------*/ -const byte ip[] = { 192, 168, 1, 99 }; //ip adress of the gateway, only used with arduino or NetworkAdvancedSetup uncommented -#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 +//#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 + #if defined(ESP8266)||defined(ESP32) + const byte ip[] = { 192, 168, 1, 99 }; //ip adress of the gateway, already defined for arduino below + #endif const byte gateway[] = { 0, 0, 0, 0 }; const byte Dns[] = { 0, 0, 0, 0 }; const byte subnet[] = { 255, 255, 255, 0 }; @@ -66,6 +68,7 @@ const byte ip[] = { 192, 168, 1, 99 }; //ip adress of the gateway, only used wit #if defined(ESP8266)||defined(ESP32) // for nodemcu, weemos and esp8266 //#define ESPWifiManualSetup true //uncomment you don't want to use wifimanager for your credential settings on ESP #else // for arduino boards + const byte ip[] = { 192, 168, 1, 99 }; const byte mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0x54, 0x95 }; //W5100 ethernet shield mac adress #endif