Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose ability to set KeepAlive (MQTT_CONN_KEEPALIVE) #186

Open
brentru opened this issue Dec 30, 2020 · 0 comments
Open

Expose ability to set KeepAlive (MQTT_CONN_KEEPALIVE) #186

brentru opened this issue Dec 30, 2020 · 0 comments
Assignees

Comments

@brentru
Copy link
Member

brentru commented Dec 30, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant