Today, MQTT pubsub offers the retain attribute in the component as a global setting - meaning that every message published with that component will have its value set to true. On the other hand, applications might require only some messages to be set as retained (since only one retained message is allowed per topic). This feature request is to allow retain attribute to be overwritten per message metadata on publish call as well.
Release Note
RELEASE NOTE: Support retain per message metadata in MQTT publish
Describe the feature
Today, MQTT pubsub offers the
retain
attribute in the component as a global setting - meaning that every message published with that component will have its value set to true. On the other hand, applications might require only some messages to be set as retained (since only one retained message is allowed per topic). This feature request is to allowretain
attribute to be overwritten per message metadata on publish call as well.Release Note
RELEASE NOTE: Support
retain
per message metadata in MQTT publish