Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
finding nodes
October 9, 2012
6:41, EEST
Forum Posts: 5
Member Since:
October 9, 2012
sp_UserOfflineSmall Offline


I am quite new to opcua, especially the java sdk and I am wondering what is the correct way to get a specific node? The sample client browses the code but in many cases we now the path to the node, the display name and maybe even the nodeID, so browsing for everything and then filtering needs a lot of code and seems inefficient.

Is there a getNode(“Object/Server/MyProperty”) method? I could not find it.

I see that there is a findNode method in nodemanager, but it takes a nodeId. How do I create a nodeID? casting from an Int does not work and I could not find samples.

Thank you

October 9, 2012
19:49, EEST
Jouni Aro
Forum Posts: 853
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

You can create a NodeId with New NodeId(namespaceIndex, Value), if you know it.

If you only know the path, you can use UaClient.getAddressSpace().translateBrowsePathToNodeId() to get the respective NodeId.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 267

Currently Online:
8 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 103

pramanj: 86

ibrahim: 70

kapsl: 57

gjevremovic: 49

TimK: 41

Fransua33: 39

fred: 38

Rainer Versteeg: 32

Thomas Reuther: 31

Member Stats:

Guest Posters: 0

Members: 1118

Moderators: 14

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1034

Posts: 4352

Newest Members:

aldayr, Python techie, emanuel45q, Patrick, sammycontrols, hellema, linoy, subranna, ray, richN9177

Moderators: Jouni Aro: 853, Otso Palonen: 32, Tuomas Hiltunen: 5, janimakela: 0, Pyry: 1, Terho: 0, Petri: 0, Bjarne Boström: 559, Heikki Tahvanainen: 402, Jukka Asikainen: 1, Teppo Uimonen: 21, Markus Johansson: 24, Matti Siponen: 64, Lusetti: 0

Administrators: admin: 1