byte ip should not be defined for all boards

if yes the DHCP on ESPs will not be used
This commit is contained in:
Florian committed 2020-01-09 21:15:38 +01:00
1 parent c83b952fdc
commit 4e14029d65
1 file changed
+5 -2
+5 -2
View File
@@ -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