diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index b5a71bf..ba28f0b 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -7,8 +7,8 @@ mqtt_client = mqtt.Client() # Verbinding maken met de Raspberry Pi (broker) mqtt_client.username_pw_set("ishak", "kobuki") -mqtt_client.connect("ishakpi.ddns.net", 1883, 60) -mqtt_client.loop_forever() +mqtt_client.connect("localhost", 1883, 60) +mqtt_client.loop_start() @app.route('/') def index(): return render_template('index.html') @@ -23,4 +23,4 @@ def move(): return "Bericht verzonden!" if __name__ == '__main__': - app.run(debug=True) \ No newline at end of file + app.run(debug=True)