diff --git a/src/Python/flask/web/app.py b/src/Python/flask/web/app.py index 311d6ab..3fc45f6 100644 --- a/src/Python/flask/web/app.py +++ b/src/Python/flask/web/app.py @@ -12,7 +12,7 @@ def on_message(client, userdata, message): # Create an MQTT client instance mqtt_client = mqtt.Client() mqtt_client.username_pw_set("server", "serverwachtwoordofzo") -mqtt_client.connect("localhost", 1884, 60) +mqtt_client.connect("localhost", 80, 60) mqtt_client.loop_start() mqtt_client.subscribe("kobuki/data") mqtt_client.on_message = on_message # this lines needs to be under the function definition otherwise it cant find which function it needs to use