SIENTIAPDE-1110
Fixes and tries
This commit is contained in:
@@ -23,6 +23,7 @@ class OPC(BaseActivity):
|
||||
self.opc_servers = opc_servers
|
||||
|
||||
self.opc_repository = {}
|
||||
self.logger.debug(f"OPC servers: {opc_servers}")
|
||||
for id, server in opc_servers.items():
|
||||
self.opc_repository[id] = OpcRepository(
|
||||
id=server['id'],
|
||||
|
||||
@@ -104,7 +104,7 @@ class OpcRepository():
|
||||
self.client = Client(self.url)
|
||||
if self.cert_path:
|
||||
self.set_security()
|
||||
self.logger.info('Starting connection...')
|
||||
self.logger.info(f'Starting connection to OPC server {self.id}...')
|
||||
return self.try_connect()
|
||||
|
||||
def try_connect(self):
|
||||
|
||||
Reference in New Issue
Block a user