allow user to define MQTT KEEPALIVE in sketch
This commit is contained in:
parent
a0520d3265
commit
ea779b1daa
@ -65,7 +65,9 @@
|
|||||||
#define PING_TIMEOUT_MS 500
|
#define PING_TIMEOUT_MS 500
|
||||||
|
|
||||||
// Adjust as necessary, in seconds. Default to 5 minutes.
|
// Adjust as necessary, in seconds. Default to 5 minutes.
|
||||||
#define MQTT_CONN_KEEPALIVE 300
|
#ifndef MQTT_CONN_KEEPALIVE
|
||||||
|
#define MQTT_CONN_KEEPALIVE 300
|
||||||
|
#endif
|
||||||
|
|
||||||
// Largest full packet we're able to send.
|
// Largest full packet we're able to send.
|
||||||
// Need to be able to store at least ~90 chars for a connect packet with full
|
// Need to be able to store at least ~90 chars for a connect packet with full
|
||||||
|
Loading…
Reference in New Issue
Block a user