Refactor forwarder and implement clock service

This commit is contained in:
2025-12-30 18:53:30 +01:00
parent 7dc1dc9d94
commit 807bab8f25
8 changed files with 171 additions and 82 deletions

View File

@@ -10,10 +10,10 @@ class MQTTForwarder:
local_broker : MQTTService
central_broker : MQTTService
def __init__(self, client_id : str, local_mqtt: MQTTService, central_mqtt: MQTTService):
def __init__(self, client_id : str, src_mqtt: MQTTService, dst_mqtt: MQTTService):
self.client_id = client_id
self.local_broker = local_mqtt
self.central_broker = central_mqtt
self.local_broker = src_mqtt
self.central_broker = dst_mqtt
def start(self, src_topic: str, dst_topic: str):
try: