adafruit / Adafruit_MQTT_Library

Arduino library for MQTT support
MIT License
566 stars 292 forks source link

Add setKeepAliveInterval() setter #194

Closed brentru closed 3 years ago

brentru commented 3 years ago

Allows the user to set the MQTT connection's keep alive interval time period in seconds via setKeepAliveInterval(). Previously, this time period was defined in the header. The function also checks if connect() was called prior.

Addresses https://github.com/adafruit/Adafruit_MQTT_Library/issues/186

Tested with multiple time intervals against Adafruit IO.