Changes for page 2 Script
Last modified by Devin Chen on 2025/06/06 14:03
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -521,7 +521,6 @@ 521 521 {{code language="lua"}} 522 522 --MQTT configuration table 523 523 local MQTT_CFG={} 524 ---if there is no need the username and password, please put them as "" 525 525 MQTT_CFG.username = "weconsupport" 526 526 MQTT_CFG.password = "123456" 527 527 MQTT_CFG.netway = 0 ... ... @@ -561,7 +561,7 @@ 561 561 function mqtt_init() 562 562 print(string.format("mqtt init mqtt_url:%s mqtt_clientid:%s", MQTT_URL, MQTT_CLIENT_ID)) 563 563 if g_mq then 564 - mqtt.close( g_mq) --Close mqtt object563 + mqtt.close() --Close mqtt object 565 565 end 566 566 g_mq, err = mqtt.create(MQTT_URL, MQTT_CLIENT_ID) -- create mqtt object,and declare it as a global variable 567 567 if g_mq then