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

Subscribe doesn't work #36

Open
fullstact69 opened this issue Dec 14, 2021 · 1 comment
Open

Subscribe doesn't work #36

fullstact69 opened this issue Dec 14, 2021 · 1 comment

Comments

@fullstact69
Copy link

MQTT client's publish method has "retain" param. It is true or false.

I change the payload data at publish method.

If "retain" param is true value, subscribe method is getting the changed data every time.
But if "retain" param is false value, subscribe method is not getting the changed data.

How can I resolve this?

@zibuyu1995
Copy link
Member

In the MQTT protocol retain is only relevant to whether the device can receive messages after reconnecting.

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