12:52, EEST
October 23, 2019
Hi everyone
i’m trying to modified the value of node but every time the compiler say the next error : Bad_UserAccessDenied (0x801F0000) “User does not have permission to perform the requested operation.”
the authentication is Anonymus.
I’m create the next method :
{
try
{
UaNode mt = client.getAddressSpace().getNode(node);
if(mt instanceof UaVariable)
{
boolean status = client.writeValue(node.ID, val);
}
}
catch( Exception e )
{
System.out.println(e.getMessage())
}
}
Thanks
15:25, EEST
November 28, 2018
Hi,
when you’re trying to write the values, you’re using parameter ‘node.ID’. However, this refers to the NodeId of type ‘ExpandedNodeId’. Since ExpandedNodeId is an OPC UA specific type, you don’t have access to change its attributes.
I suppose, you would want to write to the same node that you’re getting as an ExpandedNodeId object in your function. There are some ways to get the corresponding NodeId object but in your case you should just be able to use your UaNode object mt and write as follows:
Hope this helps 🙂
Most Users Ever Online: 1919
Currently Online:
21 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: 728
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
roycedelargie91, kourtneyquisenbe, ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuartModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1