mikakaraila / node-red-contrib-opcua

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

Change Client node connection timeout #688

Closed regrog closed 1 month ago

regrog commented 2 months ago

Hello,

I'm new to node RED use so maybe I'll not use a proper language. I created an HTTP endpoint to get back informations from the machine. I need to set a connection timeout to the client node because if the machine is not powered up and online the current timeout is too long.

How can I change the timeout? Can I inject the value?

My flow: flows_http_multiread.json

Thanks

mikakaraila commented 1 month ago

See #690 most probably you inject timestamp that will change client parameters.

mikakaraila commented 1 month ago

I modified flow and tested it: image

It will still need some changes most probably... OPCUA-ISSUE-688.json

regrog commented 1 month ago

So in "Array of nodeIds" I only have to send the array without topic = "readmultiple" and only after I should read with the readmultiple topic. I will try!

regrog commented 1 month ago

Thanks for the tips. As you said I need to do some changes to improve the flow.