1
0
mirror of https://github.com/thingsboard/thingsboard-gateway synced 2025-10-26 22:31:42 +08:00

Refactored OPC-UA connector

This commit is contained in:
samson0v
2024-08-14 15:28:55 +03:00
parent 30e55579e4
commit 7d433cd4e5
5 changed files with 83 additions and 698 deletions

View File

@@ -166,6 +166,7 @@ class TBGatewayService:
self.__modify_main_config()
log.info("Gateway starting...")
self.__duplicate_detector = DuplicateDetector(self.available_connectors_by_name)
self.__updater = TBUpdater()
self.version = self.__updater.get_version()
log.info("ThingsBoard IoT gateway version: %s", self.version["current_version"])
@@ -250,7 +251,6 @@ class TBGatewayService:
except Exception as e:
log.exception("Error while connecting to connectors, please update configuration: %s", e)
self.__duplicate_detector = DuplicateDetector(self.available_connectors_by_name)
self.__load_persistent_devices()
if self.__config['thingsboard'].get('managerEnabled', False):