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

Enabled retained flag MQTT #86

Closed
wants to merge 1 commit into from
Closed

Conversation

davide93
Copy link

@davide93 davide93 commented Sep 14, 2020

Retained messages help newly-subscribed clients get a status update immediately after they subscribe to a topic. The retained message eliminates the wait for the publishing clients to send the next update.

More info:
https://www.hivemq.com/blog/mqtt-essentials-part-8-retained-messages/

Forum topic:
https://cumulus.hosiene.co.uk/viewtopic.php?f=36&t=18488

Retained messages help newly-subscribed clients get a status update immediately after they subscribe to a topic. The retained message eliminates the wait for the publishing clients to send the next update.
@mcrossley
Copy link
Collaborator

True, but it also means that they may get stale data if MX is not currently running or updating MQTT for some reason.

@davide93
Copy link
Author

As I've said on the forum... It depends on the type of application in which MQTT is used. In my case, using MQTT in a * application turns out to be convenient to have last available data immediately showed to client and eventually check the time of the last data received throught a script. Surely it could be implemented with a checkbox.

@mcrossley
Copy link
Collaborator

Hi, I have implemented the retained flag in the next release, but I have done it via the configuration settings and it is optional.
Thanks for the suggestion.

@mcrossley mcrossley closed this Oct 9, 2020
@davide93
Copy link
Author

davide93 commented Oct 9, 2020

That's great! Thank you for the work.

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

Successfully merging this pull request may close these issues.

2 participants