Update MQTT topic to publish button press event

This commit is contained in:
ishak jmilou.ishak
2024-10-22 13:03:18 +02:00
parent cc1a03c04c
commit 714910d61e

View File

@@ -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__':