Skip to content
Snippets Groups Projects
Commit 5795395b authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Multiply OPC-UA time out with 1000 when passing it to the Client class

parent a495e804
No related branches found
No related tags found
No related merge requests found
......@@ -169,7 +169,7 @@ class StatsCrosslet(Device):
# PROTECTED REGION ID(StatsCrosslet.init_device) ENABLED START #
try:
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)
self.client = opcua.Client("opc.tcp://{}:{}/".format(self.OPC_Server_Name, self.OPC_Server_Port), self.OPC_Time_out * 1000)
self.client.connect()
ns = self.client.get_namespace_index("http://lofar.eu")
self.obj = self.client.get_root_node().get_child(["0:Objects", "{}:StationMetrics".format(ns), "{}:RCU".format(ns)])
......
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