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
-
... ... @@ -1295,7 +1295,7 @@ 1295 1295 1296 1296 sprint(string.format("mqtt init mqtt_url:%s mqtt_clientid:%s", MQTT_URL, MQTT_CLIENTID)) 1297 1297 1298 - g_mq, err = mqtt.create(MQTT_URL, MQTT_CLIENTID) -- Create the object and declare it as a global variable 1298 + g_mq, err = mqtt.create(MQTT_URL, MQTT_CLIENTID, 1) -- Create the object and declare it as a global variable, 1 means using the domain to connect 1299 1299 1300 1300 if g_mq then 1301 1301 ... ... @@ -1331,7 +1331,7 @@ 1331 1331 1332 1332 end 1333 1333 1334 - g_mq:subscribe( TEST, 0)1334 + g_mq:subscribe(Subscribe_RE_TOPIC1, 0) 1335 1335 1336 1336 end 1337 1337