From 714910d61ee93c9b9612c2bd4f3d9e6d53ad95ab Mon Sep 17 00:00:00 2001 From: "ishak jmilou.ishak" Date: Tue, 22 Oct 2024 13:03:18 +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 d048d64..e6bf3f4 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("website/knop", "Knop ingedrukt!") + mqtt_client.publish("home.commands", "Knop ingedrukt!") return "Bericht verzonden!" if __name__ == '__main__':