Expose ability to set KeepAlive (MQTT_CONN_KEEPALIVE)
brentru opened this issue · comments
Brent Rubell commented
MQTT_CONN_KEEPALIVE
(https://github.com/adafruit/Adafruit_MQTT_Library/blob/master/Adafruit_MQTT.h#L105) should be exposed via a new setKeepAlive
function
NOTE: a MQTT KeepAlive value should only be modified when the client is not connected, setKeepAlive should verify connection.
Default timeout of 5min should be retained for backwards compatibly.