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

Extend Connection Model to attempt re-connect based upon user-supplied reconnect interval #7

Open
bblacey opened this issue Sep 13, 2016 · 0 comments

Comments

@bblacey
Copy link
Collaborator

bblacey commented Sep 13, 2016

Currently the MQTT client is a publish only client however the underpinnings for a persistent connection model are already in place. Currently, the client will not reconnect to the broker unless it has something to publish. To improve future support for subscription support, the connection model should be extended to reconnect after a user-specified interval elapses. This is a very straight-forward change - check if the reconnect interval has elapsed in the processMQTTevents() method and if so, attempt to reconnect to the broker.

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

No branches or pull requests

1 participant