File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 1551
1551
*/
1552
1552
//#define MY_MQTT_CLIENT_KEY
1553
1553
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
+ #ifndef MY_MQTT_ETH_INIT_DELAY
1563
+ #define MY_MQTT_ETH_INIT_DELAY 1000
1564
+ #endif
1554
1565
/**
1555
1566
* @def MY_IP_ADDRESS
1556
1567
* @brief Static ip address of gateway. If not defined, DHCP will be used.
2323
2334
#define MY_MQTT_CA_CERT
2324
2335
#define MY_MQTT_CLIENT_CERT
2325
2336
#define MY_MQTT_CLIENT_KEY
2337
+ #define MY_MQTT_ETH_INIT_DELAY
2326
2338
#define MY_SIGNAL_REPORT_ENABLED
2327
2339
// general
2328
2340
#define MY_WITH_LEDS_BLINKING_INVERSE
Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ bool gatewayTransportConnect(void)
194
194
Ethernet.localIP ()[0 ],
195
195
Ethernet.localIP ()[1 ], Ethernet.localIP ()[2 ], Ethernet.localIP ()[3 ]);
196
196
// give the Ethernet interface a second to initialize
197
- delay (1000 );
197
+ delay (MY_MQTT_ETH_INIT_DELAY );
198
198
#endif
199
199
return true ;
200
200
}
You can’t perform that action at this time.
0 commit comments