Commit 63a85c15 authored by Marcel's avatar Marcel Committed by ORD

set default access level of nodes to read (#381)

* set default access level of nodes to read

* Revert "set default access level of nodes to read"

This reverts commit c345470e8abc7bfa7594143b22570006b9e4754d.

* set default access level of nodes to read
parent d18e54f3
......@@ -8,6 +8,7 @@ from opcua.ua import uatypes
from opcua.ua import ua_binary as uabin
from opcua.ua import UaError
from opcua.common import utils
from opcua.ua.uatypes import AccessLevel
logger = logging.getLogger('opcua.uaprotocol')
......@@ -713,6 +714,8 @@ class VariableAttributes(auto.VariableAttributes):
auto.VariableAttributes.__init__(self)
self.SpecifiedAttributes = ana.DisplayName | ana.Description | ana.WriteMask | ana.UserWriteMask | ana.Value | ana.DataType | ana.ValueRank | ana.ArrayDimensions | ana.AccessLevel | ana.UserAccessLevel | ana.MinimumSamplingInterval | ana.Historizing
self.Historizing = False
self.AccessLevel = AccessLevel.CurrentRead.mask
self.UserAccessLevel = AccessLevel.CurrentRead.mask
class VariableTypeAttributes(auto.VariableTypeAttributes):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment