self.error_stream("Communication with the OPC-UA server %s:%d failed. Reconnecting. Trace: %s"%(self.OPC_Server_Name,self.OPC_Server_Port,traceback.format_exc()))
self.error_stream("Communication with the OPC-UA server %s:%d failed. Reconnecting. Trace: %s"%(self.OPC_Server_Name,self.OPC_Server_Port,traceback.format_exc()))
self.set_state(DevState.FAULT)
self.set_state(DevState.FAULT)
self._reconnect_opcua()
self.opcua_connector.reconnect()
returnNone
returnNone
...
@@ -57,7 +57,7 @@ __all__ = ["RCUSCC", "main"]
...
@@ -57,7 +57,7 @@ __all__ = ["RCUSCC", "main"]
classBackgroundConnector(Thread):
classBackgroundConnector(Thread):
"""
"""
Run a function in the background, until it succeeds.
Run a connector function in the background, until it succeeds.