Retaining Messages #229
mattprecious
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm building an application that uses the weather data from this project, and I'd like to grab the data from the MQTT broker rather than from Home Assistant. This mostly works, but the issue I'm facing is that I don't receive any data immediately on subscription to a topic because the broker isn't caching it, which means that I could be waiting up to 30 minutes for data (weather condition).
With my limited MQTT understanding, I believe this would be possible if the message(s) were marked as
retain
. I see that there's support for retained messages in the code but it's only for a specific topic. Would it make sense to add a configuration option that lets us mark additional topics as retained?Beta Was this translation helpful? Give feedback.
All reactions