Restart of mqtt client

Hi all: I run nodeRed + the Mosquitto broker.
My problem:
The Mosquitto send the mqtt message only if the value changes e.g. a number from a slider in the dashboard. I use that value in a client (C++) for anything. However when the client restart the mosquito still does not send any mqtt >> the variable in the client remains 0.
Any idea how to "motivate" the mosquitto to poste the values of the scopes?

Thanks a lot!

If you send the MQTT message with the retain flag set - then when the client reconnects the broker will resend the last message on that topic.


Thanks a lot :slightly_smiling_face:

b.r. Alois

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.