Usage of mqtt app_name for client instance
This commit is contained in:
parent
b17eadf122
commit
62ac64ddfc
@ -51,7 +51,7 @@ class mpc(object):
|
||||
|
||||
|
||||
def send_state_msg_mqtt(state):
|
||||
client= paho.Client("mpd")
|
||||
client= paho.Client(config.APP_NAME)
|
||||
client.username_pw_set(config.MQTT_USER, config.MQTT_PASS)
|
||||
try:
|
||||
client.connect(config.MQTT_SERVER, 1883)
|
||||
@ -63,7 +63,7 @@ def send_state_msg_mqtt(state):
|
||||
|
||||
|
||||
def send_title_msg_mqtt(title):
|
||||
client= paho.Client("mpd")
|
||||
client= paho.Client(config.APP_NAME)
|
||||
client.username_pw_set(config.MQTT_USER, config.MQTT_PASS)
|
||||
try:
|
||||
client.connect(config.MQTT_SERVER, 1883)
|
||||
|
Loading…
x
Reference in New Issue
Block a user