
12/16/2020

Hi
I have many nodes that are read-only for opc ua clients. I want the server to be able to update all of these nodes in a function it has for receiving updates from a machines firmware. There is not an opcua client for these updates. Is there a correct way for system to write to read-only nodes? Any of the below?
1) set it to writable, call baseVariableState.WriteAttribute, then set to readonly again
2) set with baseVariableState.Value = X and do UpdateChangeMasks and ClearChangeMasks
3) create a new context and add a role, specify that that role can write to nodes in our model xml?
4) something else
What is the best/correct way for the server to update its nodes without a client connection, and are there any problems to be aware of? Any C# examples?
Thanks for any help
John

05/30/2017

The Server has complete control over what is writable.
A Server would publish what attributes are potentially writeable with the WriteMask attribute.
The UserWriteMask would indicate that the attributes are not writeable for non-admin users.
You can then use Roles to assign admin rights to Sessions (i.e. ConfigureAdmin).
How you update your nodes without a client active is up to the server implementer.
There are no guidelines.
1 Guest(s)