MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / setup_nodes

Method setup_nodes

opcua/server/internal_server.py:92–98  ·  view source on GitHub ↗

Set up some nodes as defined by spec

(self)

Source from the content-addressed store, hash-verified

90 return self._local_discovery_service
91
92 def setup_nodes(self):
93 """
94 Set up some nodes as defined by spec
95 """
96 uries = ["http://opcfoundation.org/UA/"]
97 ns_node = Node(self.isession, ua.NodeId(ua.ObjectIds.Server_NamespaceArray))
98 ns_node.set_value(uries)
99
100 def load_standard_address_space(self, shelffile=None):
101 if (shelffile is not None) and (os.path.isfile(shelffile) or os.path.isfile(shelffile+".db")):

Callers 1

__init__Method · 0.95

Calls 2

set_valueMethod · 0.95
NodeClass · 0.90

Tested by

no test coverage detected