allow user to define MQTT KEEPALIVE in sketch

This commit is contained in:
Todd Treece 2015-10-02 10:43:11 -04:00
parent a0520d3265
commit ea779b1daa

View File

@ -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.
#ifndef MQTT_CONN_KEEPALIVE
#define MQTT_CONN_KEEPALIVE 300 #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