Set up forwarding

This commit is contained in:
2026-01-03 16:23:45 +01:00
parent d56189ccee
commit e77c125ab3
2 changed files with 9 additions and 13 deletions

View File

@@ -17,11 +17,12 @@ class ForwarderService:
self.dst_broker_service = dst_broker
self.forwards = {}
def register_forwarder(self, client_id: str, src_topic: str, dst_topic: str) -> None:
def register_forwarder(self, client_id: str, src_topic: str, dst_topic: str, qos : int) -> None:
forwarder = MQTTForwarder(
client_id,
self.src_broker_service,
self.dst_broker_service
self.dst_broker_service,
qos
)
self.forwards[forwarder] = (src_topic, dst_topic)