Skip to content
Snippets Groups Projects
Commit 3612cb18 authored by Jan David Mol's avatar Jan David Mol
Browse files

Put back the initialisation of OPCUA attributes, accidently got removed

parent 4bf83eee
No related branches found
No related tags found
1 merge request!16Generic code cleanup
......@@ -140,6 +140,16 @@ class PCC(hardware_device):
self.OPCua_client = OPCUAConnection("opc.tcp://{}:{}/".format(self.OPC_Server_Name, self.OPC_Server_Port), "http://lofar.eu",
self.OPC_Time_Out, self.Fault, self)
# map the attributes to the OPC ua comm client
for i in self.attr_list():
try:
i.set_comm_client(self.OPCua_client)
except:
pass
self.OPCua_client.start()
# --------
# Commands
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment