mikakaraila / node-red-contrib-opcua

A Node-RED node to communicate OPC UA. Uses node-opcua library.
Other
216 stars 197 forks source link

No automatic reconnect after longer OPC server downtime #753

Open vigh-barnabas opened 1 week ago

vigh-barnabas commented 1 week ago

I'm using 0.2.331 but tried it with 0.2.336 too. After an OPC server is turned off for longer periods (like 5-6+ hours or days). When the OPC server is turned back the OPC client node doesn't connect back. It's either stuck in a reconnection loop (the nodes status shows reconnect xxx). I seen it in the hundreds. Or the node status say BadConnectionClosed (this get spammed in the node-red debug window too)

I tired sending a disconnect and reconnect based on the status of the node but it dosn't work. So far the only thing that work if I use the node-red action "Restart flows". Any suggestion what should i try?