diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index 4bcc928..fcfb3b9 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -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__': diff --git a/src/Python/socket/socketServer.py b/src/Python/socket/socketServer.py index 023c0fc..a144225 100644 --- a/src/Python/socket/socketServer.py +++ b/src/Python/socket/socketServer.py @@ -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() \ No newline at end of file