18:05, EEST
February 21, 2014
My UaClient is connected to an OPC UA server, whose addressSpace is changing based on some conditions. While the changes can easily be observed by other UA clients, such as UAExpert after rebrowsing, my client does not pick up the changes after rebrowsing the addressSpace or re-reading the uaNodes. The cache.setNodeMaxAge has been set to “0”.
I used addressSpace.browse calls as well as usNode.getReferences, addressSpace.getNode() etc. All do not pick up the changes. Any suggestion would be much appreciated.
Thanks, HU
9:36, EEST
December 21, 2011
Sorry, but I cannot think of anything useful, if the server is not providing the data that you expect. The client does not perform any magic that could affect this.
Have you ensured that the server is really providing the correct data for the client. You can turn DEBUG (or even TRACE)-level logging on the SDK to examine the data that it’s providing for the client.
9:38, EEST
December 21, 2011
10:16, EEST
December 21, 2011
11:50, EEST
February 21, 2014
As in most cases, also this one is a “user (aka programmer’s) error”.
As you explained, UaNode. getReferences() does not automatically refresh after an addressSpace change. So when I fell back to browsing “manually” (addressSpace.browse()), I browsed for the wrong NodeClass…. and thus did not see the changes.
UaNode uaNode = …getNode(uaNode.getNodeId()) and a subsequent uaNode.getReferences() also succeeded.
Thanks for your patience.
-HU
Most Users Ever Online: 1919
Currently Online:
22 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 738
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6451
Newest Members:
jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettingerModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1