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:
17 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: 735
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1523
Posts: 6449
Newest Members:
rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1