0
Beantwortet

Multiple node to subscribe OPC UA

exiatec sb vor 4 Jahren in OPCUA4Unity aktualisiert von Support vor 4 Jahren 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.

Antwort

Antwort

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

Beantwortet

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? 



Antwort

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