15:09, EEST
June 2, 2019
Hello,
I need some guidance in finding the HasTypeDefinition information.
For example: I have a server with a node, “nodeA”( ns =3, s= nodeA) of type “nodeAType”(ns=2,s=nodeAType).
I am working trying to extract this information and namespace index of the type.
i.e I need the “nodeAType” and the namespace(ns =0) information. Currently, I have the information of nodeA.
Could you guide me here please?
Regards,
Rak
16:05, EEST
Moderators
February 11, 2020
Hello,
Are you looking for the TypeDefinition on the Client side or the Server side? In either case, I’m assuming you’re using the Prosys OPC UA SDK for Java to get it.
On the Client side, you can use UaClient.getAddressSpace().getTypeDefinition(NodeId nodeId) to get the NodeId of the TypeDefinition of the Node with the NodeId used as the input of the method.
On the Server side, you can use UaServer.getAddressSpace().getNode(NodeId nodeId) to first get the Node with the known NodeId, then cast it to UaInstance and use UaInstance.getTypeDefinitionId() to get the NodeId of the TypeDefinition.
Most Users Ever Online: 1919
Currently Online:
15 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: 727
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1