Node disconnection detection

Hello Friends,

Can anyone tell us how we can detect the node is disconnected in the flow?

for e.g., I am using MQTT in node & converting the data & passing it to some process function. Now sometimes the MQTT node gets disconnected due to internet connectivity, and I want to sense in the data how many times it got disconnected & what was the time.

Regards,
Bharat Vinchwekar

Welcome to the forum @Bharatv7370

If you add a Status node to the flow, and configure it to monitor the MQTT node you will get an output each time the status changes.

Alternatively you could use the MQTT Last Will and Testament feature. If you don't know what that is then see this tutorial MQTT Essentials - All Core Concepts explained which will tell you all you need to know about MQTT

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