MQTT retain option

You PUBLISH messages with the retain flag set to your broker. You then subscribe to that topic and if there is retained data for it it will be delivered with the retain flag set. If you are already subscribed before you publish then the flag won’t be set as it indicates if the data is “live” or not.

1 Like