0
Answered

Multiple node to subscribe OPC UA

exiatec sb 3 years ago in OPCUA4Unity updated by Support 3 years ago 3

How to subscribe multiple nodes and with events? Fyi i need to subscribe more than 200 nodes to monitor (is this possible using the client?). Based on the documentation it only explain subscribe for one node and event.

Answer

Answer

The OPCUANodeSubscription object includes everything you need, e.g. the NodeID of the node which changed.

Answered

Do you know coding with C#? You could do a loop and subscribe in that for each loop to all the signal you need.

Yes, im using C#. Thanks for the advise, done for loop to subscribe all nodes. 
But then when all nodes using public void NodeChanged(OPCUANodeSubscription sub, object obj), when value change, I can't trace which node is. Can you give us example? 



Answer

The OPCUANodeSubscription object includes everything you need, e.g. the NodeID of the node which changed.