mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +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'])
|
@app.route('/move', methods=['POST'])
|
||||||
def move():
|
def move():
|
||||||
mqtt_client.publish("home.commands", "Knop ingedrukt!")
|
mqtt_client.publish("home/commands", "Knop ingedrukt!")
|
||||||
return "Bericht verzonden!"
|
return "Bericht verzonden!"
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Reference in New Issue
Block a user