cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

ThingWorx Navigate is now Windchill Navigate Learn More

Translate the entire conversation x

Retaining messages on MQTT Publish in Kepware IoT Gateway

MD_12010197
4-Participant

Retaining messages on MQTT Publish in Kepware IoT Gateway

How to add retain flag in Kepware publish so that the MQTT broker can retain messages from Kepware? Is there any other approach so that message can be retained in MQTT broker when sent via IoT gateway?

ACCEPTED SOLUTION

Accepted Solutions
bmacri
12-Amethyst
(To:MD_12010197)

Greetings.  There is no way to set messages to be retained in a MQTT Agent at this time,  I would be interested to understand the use case for why it is a need for you.

 

A MQTT broker only retains the last update sent to a topic and a retained message is only sent when a client first subscribes to a topic.  Assuming that the publishing interval on the IoT Gateway Agent is fairly quick, the amount of time that a client would get the retained message before getting the next message is limited.

 

Adding the ability to publish messages with the retain flag is a small enhancement but I would be interested to understand how it would be used.

 

Thanks!

-Ben Macri

View solution in original post

1 REPLY 1
bmacri
12-Amethyst
(To:MD_12010197)

Greetings.  There is no way to set messages to be retained in a MQTT Agent at this time,  I would be interested to understand the use case for why it is a need for you.

 

A MQTT broker only retains the last update sent to a topic and a retained message is only sent when a client first subscribes to a topic.  Assuming that the publishing interval on the IoT Gateway Agent is fairly quick, the amount of time that a client would get the retained message before getting the next message is limited.

 

Adding the ability to publish messages with the retain flag is a small enhancement but I would be interested to understand how it would be used.

 

Thanks!

-Ben Macri

Announcements


Top Tags