17:59, EEST
March 16, 2017
Hi,
I would like to clarify if my unterstanding for registerNodes and unregisterNodes is correct.
If a server supports it and I call the registerNodes service with a NodeId ‘1’ then the server returns e.g. a new NodeId like NodeId ‘2’ which I can use for a ‘quick’ access.
The question is what NodeId do I have to use when I call the unregisterNodes service?
From the Javadoc I would assume that it is the NodeId ‘2’ which have been returned when calling the registerNodes service – because in the Javadoc it says: ‘This Service is used to unregister NodeIds that have been obtained via registerNodes(com.prosysopc.ua.stack.builtintypes.NodeId…).’
Is this correct?
Thank you!
11:32, EEST
April 3, 2012
Hi,
The com.prosysopc.ua.client.AddressSpace.registerNodes(NodeId…) + registerNodes(NodeId…) are just basically wrappers on the service call (with tracking the NodeIds to enable AddressSpace.unregisterAllNodes()). Thus since per spec it is the NodeIds previously received from RegisterNodes the answer is ‘yes’. However, I should probably note few things.
RegisterNodes: https://reference.opcfoundation.org/Core/Part4/v105/docs/5.8.5
UnregisterNodes: https://reference.opcfoundation.org/Core/Part4/v105/docs/5.8.6
Unless you have a server that really needs this, I would just recommend to ignore this Service exists. For example, our SDK’s server side by default just returns the same NodeIds back, i.e. no benefit. Also e.g. for a case of repeatedly Read:ing a long-String-NodeId’d node, Subscriptions+MonitoredItems are a better alternative anyway since the notifications use numeric MonitoredItemIds, not NodeIds. Plus since the registered NodeIds only work within a Session in the case of any reconnects you would need to re-register them (and you might get a different NodeId than previous session).
Most Users Ever Online: 1919
Currently Online:
50 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: 726
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7, franciscagrimwad, adult_galleryModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1