From 5739655e9753000ad8c5b3b464d0c203f0c2cd17 Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Tue, 22 Oct 2024 14:38:54 +0200 Subject: [PATCH] Update MQTT topic to publish button press event --- src/Python/flask/web/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index e6bf3f4..b70a311 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -16,7 +16,7 @@ def index(): @app.route('/move', methods=['POST']) def move(): - mqtt_client.publish("home.commands", "Knop ingedrukt!") + mqtt_client.publish("home/commands", "Knop ingedrukt!") return "Bericht verzonden!" if __name__ == '__main__':