Commit ca545eb8 authored by yogesh.m's avatar yogesh.m

update

parent 624a3d06
......@@ -148,11 +148,8 @@ async def get_existing_hierarchy_array(client,node_objects):
existing_datatypes.append(str(identifier_name) + "-" + str(24))
else:
existing_datatypes.append(str(identifier_name) + "-" + str(datatype._value_))
return identifier_array_existing,existing_datatypes
def add_nodes(nodes_to_add,hierarchy,parent_key=None):
for key in hierarchy:
if (key != "hash" and key!="namespace_idx"):
......
Configuration:
endpoint_url = "opc.tcp://2.2.2.5:53531/myopc/free"
namespace_server ="http://klopc.com"
udp_hash_receiver_ip="2.2.2.5"
udp_hash_receiver_port=20002
udp_ip = "2.2.2.5"
udp_port = 20001
\ No newline at end of file
configuration:
endpoint_url: opc.tcp://2.2.2.5:53531/myopc/free
namespace_server: http://klopc.com
udp_hash_receiver_ip: 2.2.2.5
udp_hash_receiver_port: 20002
udp_ip: 2.2.2.5
udp_port: 20001
\ No newline at end of file
......@@ -5,7 +5,7 @@ from asyncua_server import st
import threading
import yaml
yamlfile=open("opc_ua_transmitter_config.yaml")
yamlfile=open("opc_ua_receiver_config.yaml")
data = yaml.load(yamlfile, Loader=yaml.FullLoader)
Endpoint_Url = data["configuration"]["endpoint_url"]
Namespace_Server = data["configuration"]["namespace_server"]
......
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