mirror of
https://gitlab.fdmci.hva.nl/technische-informatica-sm3/ti-projectten/rooziinuubii79.git
synced 2025-08-03 20:04:58 +00:00
changed port
This commit is contained in:
@@ -10,7 +10,7 @@ def index():
|
||||
@app.route('/move', methods=['POST'])
|
||||
def move():
|
||||
direction = request.form['direction']
|
||||
publish.single("home/commands", direction, hostname="ishak.ishakpi.ddns.net")
|
||||
publish.single("move", direction, hostname="ishak.ishakpi.ddns.net")
|
||||
return "Message sent"
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@@ -13,5 +13,5 @@ client = mqtt.Client()
|
||||
client.on_connect = on_connect
|
||||
client.on_message = on_message
|
||||
|
||||
client.connect("ishak.ishakpi.ddns.net", 1883, 60)
|
||||
client.connect("ishak.ishakpi.ddns.net", 83, 60)
|
||||
client.loop_forever()
|
Reference in New Issue
Block a user