This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Retain messages when sent over MQTT

Hi Dev zone,

I am working with the mqtt sample program using NCS1.3.0 and with a Nordic Thingy91.

I am able to publish and subscribe to the data , and I am using Mqtt.fx to view the data.

I wanted to enable the retain message feature that is available with the MQTT Protocol. Is it possible to do it through the inbuilt MQTT library (or) do we need to enable it through the MQTT broker (Mqtt.fx) in my case. 

I read more about it here but could not find any retain message flag option in the mqtt.c library.

www.steves-internet-guide.com/.../

Could you let me know how I could set the retain message flag ?

Regards,

Adeel.

Related