opc-uaopc

Filter Node Information on the Server in OPC UA


I try to understand the OPC UA Services a search a Method to return some nodes specified by their Sensor value.

For example, we have a node which has five children. The Sensor value of the first and second children are below 100 and the rest is above. Now I want to return all child nodes with a value below 100. 

I thought about using browse() to get all children and then use read() to get their attributes and check the values, but that seams to be very inefficient for me.

Furthermore, it would be nice if the OPC UA Server return just the nodes below 100.

Thanks for your help.


Solution

  • The Query service is supposed to provide you that, but the problem is that the servers do not typically support it, yet. So you will probably have to read the values yourself. Note that you can read several values with one read call.