From 8ed4943dd70c63152a41ec892fd8906f1c4c159d Mon Sep 17 00:00:00 2001 From: Laurent Date: Fri, 2 Jan 2026 20:01:57 +0100 Subject: [PATCH] Add debug statement --- api-customer/app.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api-customer/app.py b/api-customer/app.py index 6beb6221..7ea0756b 100644 --- a/api-customer/app.py +++ b/api-customer/app.py @@ -31,6 +31,7 @@ message_controller = MessageController(app, auth_data, "https://192.168.15.120:8 def handle_message_received(topic:str, payload:str): try : + print(payload, flush=True) url = "https://127.0.0.1:1880/message/receive" requests.post(url, json=payload, verify=False) except Exception as e: @@ -60,9 +61,6 @@ def start_mqtt(data : AuthData): forwarder = MQTTForwarder(client_id, local_broker, api_broker) forwarder.start(f"/customer/telemetry/#", f"/board-mate/{client_id}/telemetry") - - - if __name__ == '__main__': auth_controller.set_on_login(start_mqtt)