Adafruit_MQTT_Library icon indicating copy to clipboard operation
Adafruit_MQTT_Library copied to clipboard

Adds retain support for publishing messages

Open Fapiko opened this issue 6 years ago • 2 comments

This adds retains support to published messages. It should be backwards compatible with existing clients as it defaults to false if not supplied.

Solves #20 and #161

Fapiko avatar Feb 20 '20 00:02 Fapiko

Is there any example how to call this function in the code? unfortunately I have no idea how can I use it.

Thank you

Paulie92 avatar Apr 12 '21 19:04 Paulie92

When will this be merged? Seems all tests have passed and it is backward compatible, so what is the holdup? The feature is sorely needed!

Please merge!

trickkiste avatar May 23 '22 14:05 trickkiste

I made an up-to-date version of this which overloads the publish and publishPacket functions rather than using optional arguments:

https://github.com/ben-willmore/Adafruit_MQTT_Library/tree/retain-flag

ben-willmore avatar Nov 02 '22 19:11 ben-willmore

@ben-willmore Are you interested in checking out a pull request against this library, I'll review it.

brentru avatar Nov 02 '22 19:11 brentru

@brentru Sure, have now done so -- #216

ben-willmore avatar Nov 02 '22 20:11 ben-willmore

Resolved by https://github.com/adafruit/Adafruit_MQTT_Library/pull/216

brentru avatar Nov 11 '22 14:11 brentru