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

Allow reconnect without enforcing a clean session #6

Open
krombel opened this issue Sep 1, 2017 · 1 comment
Open

Allow reconnect without enforcing a clean session #6

krombel opened this issue Sep 1, 2017 · 1 comment

Comments

@krombel
Copy link

krombel commented Sep 1, 2017

It would be nice to allow "unclean" sessions. This is useful for e.g. push services where the client should receive pushes that were send while the client had connection problems.

I think the change has to be done here (and upwards to make in configurable)

@gotev
Copy link
Contributor

gotev commented Sep 1, 2017

Feel free to fork the project and send a pull request with the change. The easiest way to achieve that is to add:

public static int CLEAN_SESSION = true; //measured in seconds

in MQTTService and set the value in the line you mentioned, so you can make that setting early in the app initialization.

krombel added a commit to krombel/android-mqtt-service that referenced this issue Sep 9, 2017
This is useful for e.g. push services where the client should receive pushes that were send while the client had connection problems.
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

2 participants