16:51, EEST
September 19, 2017
Hello All,
I am new to the topic and i am trying to implement a simple Client in Android, which reads the value of an Attribute like NodeClass or Description.
I am using the following lines of code:
…
NodeId node = new NodeId(84, “Root”);
DataValue dv = client.readAttribute(node, Attributes.NodeClass)
….
I recieve an error message : Bad:NodeIdUnknown (0x80340000) “The node id refers to a node that does not exist in the server address space”
I guess, my defenition of the node is wrong : NodeId node = new NodeId(84, “Root”);
Thank you and Regards
18:06, EEST
December 21, 2011
16:13, EEST
September 19, 2017
Hello,
Thank You very much, it helped me solve the problem.
I have implemented a subscription with the Prosys Test Server.
At the start I first define the Node i want to subscribe to and get the (changed) value of this node.
NodeId id = new NodeId(2,”MyLevel”);
However, on another Test server all Nodes have Namespaceindex of 0.
to define a NodeId should i enter:
NodeId id = new NodeId(2258, “0”) (for the node containing the current time) as an example
Thank you and Regards
12:48, EEST
April 3, 2012
Hi,
Please read the tutorials found in the ‘doc’ folder of the SDK package. After that please see the javadocs also found in the doc folder.
The javadocs for NodeId clearly state (for the int,int constructor):
Parameters:
namespaceIndex 0..65535
value the value should be a positive integer, as it is converted to an UnsignedInteger
And for the (int, String) constructor:
Parameters:
namespaceIndex 0..65535
value String or null
Also I suggest reading OPC UA specification Parts 1 and 3 for learning the basic concepts and the AddressSpace structure.
– Bjarne
Most Users Ever Online: 1919
Currently Online:
24 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: 730
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
toneylapham544, rondawolinski7, Marypof5711, roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25ZofModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1