adafruit / Adafruit_MQTT_Library

Arduino library for MQTT support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expose ability to set KeepAlive (MQTT_CONN_KEEPALIVE)

brentru opened this issue · comments

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.