feature(M2Mqtt): Adds auto reconnect, #91
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Auto reconnected has been added,
The workflow has been changed a little bit, but there are no breaking
interface changes, thus the new version should work with existing code
without any requirement for code changes.
Some new callbacks have been added for various events (i.e. reconnected)
The new interface is you have the client, you can add and remove topics
from the client these are stored in a list on the client
When the client connects or reconnects, subscribeAll is called, this
subscribes to all of the topics on the client.
subscribe and unsubscribe work exactly as they did before but now they
keep the topics list up to date
the classes have been changed to a program, maybe this was a bad idea,
but i found the program assisted the development process, the nice thing
is, you can still use the program as a library so no harm there.
The default-sane configuration is chosen (i.e. autoreconnect by default)
etc
Made some minor interface changes to make the app a little nicer in places