Subscription on folders?

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
rdrolshagen
Jr. Member
Jr. Member
Posts: 1
Joined: 26 Jan 2015, 12:23

Subscription on folders?

Post by rdrolshagen »

Hi,

i am new to OPC UA development and trying to getting started. In my use case i've got a Database (OPC UA Server) which is continuously browsed by a Visualisation component (OPC UA Client).
In the case of only a few elements in the addresspace of the server this browsing solution works very well, but if there are > 500-1000 elements this browsing solution starts getting really slow.

A fact is, that most of the values i am browsing aren't changing, so using some kind of subscription function could be a possible solution to only get the changes. The problem is that i can't find some kind of "subscription to folders and all included elements" in the documentation of the SDK. Is this possible in OPC UA? Could you give me a hint how to realise this if it is possible?

Thanks in advance!

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re: Subscription on folders?

Post by Support Team »

Hi,

MonitoredItems for data change notifications in a Subscription are created for individual variable nodes. It is not possible to create a subscription for a folder.

You must select the nodes of interest during browsing (using the NodeId) or load the NodeIds from a configuration file. The monitored items are then created with the NodeIds for the nodes of interest. The server will then deliver changed values only after delivering the current values for all added monitored items.

Best Regards,
Unified Automation Support Team

Post Reply