From b55e3f0bfe68fa7c3cceca741541cd34a825352c Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Tue, 1 Dec 2020 23:03:25 +0100 Subject: [PATCH] Lowered OPC-UA request/connection timeout from 1000 to 5 seconds. --- CDB/LOFAR_ConfigDb.json | 2 +- RCUSCC/RCUSCC/RCUSCC.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CDB/LOFAR_ConfigDb.json b/CDB/LOFAR_ConfigDb.json index 1ec0be353..9d1ddb974 100644 --- a/CDB/LOFAR_ConfigDb.json +++ b/CDB/LOFAR_ConfigDb.json @@ -112,7 +112,7 @@ "4842" ], "OPC_Time_Out": [ - "1.0" + "5.0" ], "polled_attr": [ "pwr_dig_r", diff --git a/RCUSCC/RCUSCC/RCUSCC.py b/RCUSCC/RCUSCC/RCUSCC.py index 6cdc54043..d5ff4face 100644 --- a/RCUSCC/RCUSCC/RCUSCC.py +++ b/RCUSCC/RCUSCC/RCUSCC.py @@ -178,7 +178,7 @@ class RCUSCC(Device): def _connect(self): self.debug_stream("Connecting to OPC-UA server %s:%d...", self.OPC_Server_Name, self.OPC_Server_Port) - self.client = opcua.Client("opc.tcp://{}:{}/".format(self.OPC_Server_Name, self.OPC_Server_Port), self.OPC_Time_Out * 1000) + self.client = opcua.Client("opc.tcp://{}:{}/".format(self.OPC_Server_Name, self.OPC_Server_Port), self.OPC_Time_Out) # timeout in seconds self.client.connect() self.debug_stream("Connecting to OPC-UA server %s:%d done.", self.OPC_Server_Name, self.OPC_Server_Port) -- GitLab