Browse Source

Usage of mqtt app_name for client instance

master
Dirk Alders 2 years ago
parent
commit
fe789d96d1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      ambient_info.py

+ 1
- 1
ambient_info.py View File

16
 
16
 
17
 
17
 
18
 def send_data_to_mqtt(data):
18
 def send_data_to_mqtt(data):
19
-    client= paho.Client("temp_sens")
19
+    client= paho.Client(config.APP_NAME)
20
     client.username_pw_set(config.MQTT_USER, config.MQTT_PASS)
20
     client.username_pw_set(config.MQTT_USER, config.MQTT_PASS)
21
     try:
21
     try:
22
         client.connect(config.MQTT_SERVER, 1883)
22
         client.connect(config.MQTT_SERVER, 1883)

Loading…
Cancel
Save