MQTT Retain Flag

Does anyone know how to set the Retain flag on an MQTT Route. I’ve been searching but haven’t found an answer yet.

Thanks,
Joe

We don’t currently support that flag though it’s something we could add.

Would tell us more about how/why you want to use this flag? Specifically, would you want it set on every message sent to MQTT or do you want to set it based on some value in the event itself or based on the notefile name, etc.

The Retain Flag tells the broker to retain the last message received so that any client just logging in can see the last message. Once a new message is published, that message replaces the old message and becomes the new retained message. If the Retain Flag is not set to True the client sees nothing unless the client is publishing on a regilar basis.

If you are going to support MQTT, the Retain Flag must be supported. My current project sends heartbeats once every 2 hours unless disturbed. I need to log in and look at the status (battery, temperature, last location, etc.). The Reroute on failure check box, i guess, takes the place of the Quality Of Service parameter.

Thanks,
Joe

Thank you for the details. We’ll add this to our roadmap. We should be able to deliver this in Q3.

1 Like

Awesome! Thank you!

Of course not everyone will want the flag set (depends on their client implementation). I do since my MQTT clients are not connected full time,

Thanks,
Joe

1 Like