Przeglądaj źródła

UAExpert assumes the default access level ANY (3), which is not printed into the NS XML's. open62541 assumes NONE (0). Changed NS Compiler to correct for the discrepancy.

ichrispa 8 lat temu
rodzic
commit
c2bb903346
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      tools/pyUANamespace/ua_node_types.py

+ 2 - 2
tools/pyUANamespace/ua_node_types.py

@@ -928,8 +928,8 @@ class opcua_node_variable_t(opcua_node_t):
     self.__dataType__            = None
     self.__dataType__            = None
     self.__valueRank__           = -1
     self.__valueRank__           = -1
     self.__arrayDimensions__     = []
     self.__arrayDimensions__     = []
-    self.__accessLevel__         = 0
-    self.__userAccessLevel__     = 0
+    self.__accessLevel__         = 3
+    self.__userAccessLevel__     = 3
     self.__minimumSamplingInterval__ = 0.0
     self.__minimumSamplingInterval__ = 0.0
     self.__historizing__         = False
     self.__historizing__         = False
     self.__xmlValueDef__         = None
     self.__xmlValueDef__         = None