From 2e4f048ed98026f910fa412876a3f5509700c0c7 Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Thu, 9 Jan 2025 13:56:45 +0100 Subject: [PATCH] feat: call save_sensor_data function upon receiving kobuki/data message --- src/Python/flask/web/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index 59fe855..6fa1f1d 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -13,6 +13,7 @@ def on_message(client,userdata, message): global kobuki_message, latest_image if message.topic == "kobuki/data": kobuki_message = str(message.payload.decode("utf-8")) + save_sensor_data(kobuki_message) elif message.topic == "kobuki/cam": latest_image = message.payload