19:16, EEST
February 21, 2014
Hi there,
I built a server (SDK 4.8.0) with some nodes being instantiated from generated code. If I try to programmatically change any attributes other than the value attribute in response to some business logic, the attributes are not updated “to the outside”, i.e. connected clients (UaExpert, Prosys Browser) do not reflect the attribute changes, although reading the attributes back from the same code that has set the attributes gives the correct values.
Use case: in response to a method call (callback in generated code), that callback shall change the UserAccessLevel and Executable attributes of some (generated) variables and methods, respectively.
I also went through changing the attributes using the nodeManager – with the same result.
Any hint will be much appreciated.
Thanks,
Hans-Uwe
10:38, EEST
April 3, 2012
Hi
The UserXXX Attributes must be handled in a reactive manner via (based on ServiceContext in) IoManagerListener(s)on the NodeManager.getIoManager() on the namespaces you created the instances to. IMPORTANT, here I mean methods onGetUserAccessLevel, onGetUserExecutable and onGetUserWriteMask, it wont work via the Attribute directly.
It is sort of a mistake that they are in the UaNode API, though they do make sense on the client side as there the node represents the single user. And probably it would be best if it would work via the attribute-returning listener methods, but this design is very old.
Any other Attribute should be ok and visible if you set it in the server-side UaNodes.
Most Users Ever Online: 1919
Currently Online:
10 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: 738
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6451
Newest Members:
jonathonmcintyre, fannielima, kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettingerModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1