Commit 1c97f698 authored by yogesh.m's avatar yogesh.m

update

parent b5ab9e54
......@@ -20,7 +20,7 @@ class asyncua_server():
root_nodes=await self.server.get_root_node().get_children()
obj_nodes=await root_nodes[0].get_children()
for node in obj_nodes:
if("ns=" in str(node) and "ns=2;i=1" not in str(node)):
if("ns=" in str(node)):
print(node)
sub_obj = await self.server.get_node(node).get_children()
for del_node in sub_obj:
......@@ -53,8 +53,6 @@ class asyncua_server():
# set endpoint information
url = url
self.server.set_endpoint(url)
root_nodes = await self.server.get_root_node().get_children()
obj_nodes = await root_nodes[0].get_children()
# create a new address space
uri = uri
self.idx = await self.server.register_namespace(uri)
......
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