diff --git a/app/function.py b/app/function.py index 17a13d39..5c43e919 100755 --- a/app/function.py +++ b/app/function.py @@ -15,7 +15,6 @@ def connect_mqtt(): client = mqtt_client.Client(main.client_id) if main.username != "" and main.password != "": client.username_pw_set(main.username, main.password) - client.on_connect = on_connect client.connect(main.broker, main.port) log("Connected to MQTT Broker!") return client