From 369120b16bdfd664341504adcc0ab475f4bab1fc Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Thu, 9 Jan 2025 14:19:01 +0100 Subject: [PATCH] feat: save sensor data to the database upon receiving 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 a94d875..e308fd3 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -14,6 +14,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")) + sensor_data(kobuki_message) # Sla de data op in de database elif message.topic == "kobuki/cam": latest_image = message.payload