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

clean_sess is not supported #49

Closed
5HT opened this issue Jul 4, 2017 · 3 comments
Closed

clean_sess is not supported #49

5HT opened this issue Jul 4, 2017 · 3 comments
Assignees

Comments

@5HT
Copy link

5HT commented Jul 4, 2017

received('CONNACK', State = #proto_state{clean_sess = true}) ->
    %%TODO: Send awaiting...
    {ok, State};

received('CONNACK', State = #proto_state{clean_sess = false}) ->
    %%TODO: Resume Session...
    {ok, State};

can you point me any guides how to implement this in client library?

@emqplus emqplus self-assigned this Jul 6, 2017
@abcd-ca
Copy link

abcd-ca commented Apr 27, 2018

@5HT it's documented here, do you know that it's not implemented? setting clean_sess = false doesn't appear to work from the testing I've done. Messages published with qos1 (retain false) while my client is offline are not received when the client reconnects. This is not the case when I do a standalone test with the same tests using the same broker and mosquitto_sub on the command line

@gilbertwong96
Copy link
Contributor

Clean Session mechanism is normal in the latest emqtt implementation. Please try it.

@5HT
Copy link
Author

5HT commented Aug 12, 2019

We already landed a client based on emqx/emqtt in N2O:

https://github.com/synrc/n2o/blob/master/src/mqtt/n2o_mqtt.erl

Thanks a lot!!!

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

4 participants