Skip to content

Commit

Permalink
fix mqtt
Browse files Browse the repository at this point in the history
  • Loading branch information
m4dm4rtig4n committed Nov 1, 2021
1 parent 0f23e50 commit ac492f9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac492f9

Please sign in to comment.