added user/passwd and debug for mqtt connection

Signed-off-by: Ebbe Baß <ebbe@ping-mee.de>
master
Ebbe Baß 2022-06-29 22:06:39 +02:00
parent 0b3391cac2
commit bc1c162ae9
1 changed files with 2 additions and 0 deletions

View File

@ -174,6 +174,8 @@ if __name__ == '__main__':
mqttBroker ="homeassistant.ping-mee.local"
client = mqtt.Client("server-rack-led-1")
client.username_pw_set("mqtt", "pmMQTT_11!")
debug_print("Connecting to MQTT Broker "+str(mqttBroker))
client.connect(mqttBroker)
client.on_connect = mqtt_on_connect
client.on_message = mqtt_on_message