Send the message using the retain flag, then when any device reconnects the last retained topic will be resent. You can also set QOS to 2 to get a handshake
Hi @E1cid Thanks for the prompt reply. My main query is that what happens when the MQTT OUT node is in "connecting state" and a data is sent to the node? Where does that data go? Does the data gets stored somewhere?
If at all the data is not sent. The mqtt node is still in connecting state and doesnt even throw up an error. Now how can I catch that error?
P.S: Error being that the data is not being able to send.
You could queue the messages with the delay node and rate limit, set to a high rate delay. Then use a status node to start flushing the messages, once connected and queue again if disconnected. read the help text on these nodes to see how this would work, there are also many examples of this on the forum, This post may help to
Hi @zenofmud Thanks for the comment. Actually I purposefully simulated this condition and wanted community advice/solution for it. Yes I have misconfigured the settings in MQTT OUT node for it to behave so as in simulating a real world scenario.