From 91346ac57cbdc74fe4ffc10b6e05fc4307395581 Mon Sep 17 00:00:00 2001 From: Eric Andrechek Date: Wed, 10 Apr 2024 20:29:18 -0400 Subject: [PATCH] added add debugs --- tracking-dashboard/backend/mqtt-syncer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tracking-dashboard/backend/mqtt-syncer.py b/tracking-dashboard/backend/mqtt-syncer.py index 5ba61e9..f8fbdb7 100644 --- a/tracking-dashboard/backend/mqtt-syncer.py +++ b/tracking-dashboard/backend/mqtt-syncer.py @@ -198,6 +198,7 @@ def on_message(client, userdata, message): if key in old_messages[id] and src['data']['telemetry'][key] == old_messages[id][key]: continue client.publish(topic + "/" + key, json.dumps(src['data']['telemetry'][key]), retain=True, qos=0) + print("Sent telemetry data to mqtt: ", topic + "/" + key, src['data']['telemetry'][key]) message_building[id]['ss'] = payload return @@ -227,6 +228,7 @@ def on_message(client, userdata, message): # send telemetry data to mqtt topic = "TELEMETRY/" + message_building[id]['name'] + "-" + str(message_building[id]['ssid']) client.publish(topic + "/" + key, json.dumps(payload), retain=True, qos=0) + print("Sent telemetry data to mqtt: ", topic + "/" + key, payload) try: old_messages[id][key] = payload except: