Make MQTT sink "retain" flag configurable #21278
Labels
sink: mqtt
Anything `mqtt` sink related
type: feature
A value-adding code addition that introduce new functionality.
A note for the community
Use Cases
I would like the messages sent to the MQTT sink to be retained by the server.
Attempted Solutions
The MQTT client's
publish
function accepts aretain
flag, which the sink service hardcodes tofalse
Proposal
I think it should be rather easy to expose a "retain" boolean configuration flag for the sink that allows users to configure this.
I'd be happy to give it a go and submit a PR myself, but opening this issue first so the feature can be considered before I spend time on it.
References
No response
Version
No response
The text was updated successfully, but these errors were encountered: