Check Server for Node Changes|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Check Server for Node Changes
Avatar
John Curry
Member
Members
Forum Posts: 5
Member Since:
12/16/2019
sp_UserOfflineSmall Offline
1
12/26/2020 - 09:26
sp_Permalink sp_Print

Is there a way my Client can get notified if the Server address space has been modified (Add/Delete/Modify node)?  

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
Avatar
John Curry
Member
Members
Forum Posts: 5
Member Since:
12/16/2019
sp_UserOfflineSmall Offline
3
01/11/2021 - 07:42
sp_Permalink sp_Print

So it looks like ModelChangeEvents  is the event that will tell me if the address space is changed.  Is there sample code somewhere that shows me how to subscribe to an event, and get notification when the event happens?  Thx

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
01/12/2021 - 11:39
sp_Permalink sp_Print

Note that ModelChange events are only produced when the "Version" property is attached to a Node.

Many servers will not report these events and there is no other mechanism.

Sample code:

https://github.com/OPCFoundati.....mpleEvents

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 25
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1435
Posts: 4855