Changes for page 2 Script

Last modified by Devin Chen on 2025/06/06 14:03

From version 55.1
edited by Hunter
on 2023/08/03 15:02
Change comment: Replaced user [xwiki:XWiki.hunter123] in fields [author, contentAuthor] to user [xwiki:XWiki.Hunter]
To version 51.1
edited by Hunter
on 2023/05/06 10:19
Change comment: There is no comment for this version

Summary

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 object
563 + 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