File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 15511551 */
15521552//#define MY_MQTT_CLIENT_KEY
15531553
1554+ /**
1555+ * @def MY_MQTT_ETH_INIT_DELAY
1556+ * @brief Set a delay for Ethernet initialisation.
1557+ *
1558+ * This define is useful if you want to change default Ethernet chip initialisation
1559+ * delay time to other value. By default, it is 1000ms
1560+ * Example: @code #define MY_MQTT_ETH_INIT_DELAY 1 @endcode
1561+ *
1562+ * @endcode
1563+ */
1564+ #ifndef MY_MQTT_ETH_INIT_DELAY
1565+ #define MY_MQTT_ETH_INIT_DELAY 1000
1566+ #endif
15541567/**
15551568 * @def MY_IP_ADDRESS
15561569 * @brief Static ip address of gateway. If not defined, DHCP will be used.
23232336#define MY_MQTT_CA_CERT
23242337#define MY_MQTT_CLIENT_CERT
23252338#define MY_MQTT_CLIENT_KEY
2339+ #define MY_MQTT_ETH_INIT_DELAY
23262340#define MY_SIGNAL_REPORT_ENABLED
23272341// general
23282342#define MY_WITH_LEDS_BLINKING_INVERSE
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ bool gatewayTransportConnect(void)
194194 Ethernet.localIP ()[0 ],
195195 Ethernet.localIP ()[1 ], Ethernet.localIP ()[2 ], Ethernet.localIP ()[3 ]);
196196 // give the Ethernet interface a second to initialize
197- delay (1000 );
197+ delay (MY_MQTT_ETH_INIT_DELAY );
198198#endif
199199 return true ;
200200}
You can’t perform that action at this time.
0 commit comments