mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-04 12:24:57 +00:00
Update MQTT topic to publish button press event
This commit is contained in:
@@ -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__':
|
||||
|
Reference in New Issue
Block a user