Usage of mqtt app_name for client instance
This commit is contained in:
父節點
d0817bc504
當前提交
fe789d96d1
@ -16,7 +16,7 @@ logger = logging.getLogger(ROOT_LOGGER_NAME).getChild('main')
|
||||
|
||||
|
||||
def send_data_to_mqtt(data):
|
||||
client= paho.Client("temp_sens")
|
||||
client= paho.Client(config.APP_NAME)
|
||||
client.username_pw_set(config.MQTT_USER, config.MQTT_PASS)
|
||||
try:
|
||||
client.connect(config.MQTT_SERVER, 1883)
|
||||
|
載入中…
x
新增問題並參考
Block a user