Changes for page 2 Script

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

From version 38.1
edited by Hunter
on 2023/03/17 14:43
Change comment: There is no comment for this version
To version 33.1
edited by Hunter
on 2022/11/22 15:38
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -465,9 +465,8 @@
465 465  
466 466  (% class="mark" %)2.If your server requires SSL certificate to log in,please use OpenCloud.Because only OpenCloud platform can support to upload certificate
467 467  
468 -{{info}}
468 +(% class="wikigeneratedid" %)
469 469  **✎Note: **Before program the script of MQTT, please make sure the server(MQTT broker) can be connected through MQTT Client tool.
470 -{{/info}}
471 471  
472 472  (% class="wikigeneratedid" %)
473 473  Tool link: **[[MQTT.fx>>http://mqttfx.jensd.de/index.php/download]]**
... ... @@ -1235,10 +1235,6 @@
1235 1235  
1236 1236  [[image:image-20220709165402-20.png]]
1237 1237  
1238 -{{info}}
1239 -**✎Note:** Before using the following demo script, please make sure the V-Box firmware is newer than 22110701
1240 -{{/info}}
1241 -
1242 1242  {{code language="lua"}}
1243 1243  sprint = print
1244 1244  
... ... @@ -1300,7 +1300,7 @@
1300 1300  
1301 1301   sprint(string.format("mqtt init mqtt_url:%s mqtt_clientid:%s", MQTT_URL, MQTT_CLIENTID))
1302 1302  
1303 - 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
1298 + g_mq, err = mqtt.create(MQTT_URL, MQTT_CLIENTID) -- Create the object and declare it as a global variable
1304 1304  
1305 1305   if g_mq then
1306 1306  
... ... @@ -1336,7 +1336,7 @@
1336 1336  
1337 1337   end
1338 1338  
1339 - g_mq:subscribe(Subscribe_RE_TOPIC1, 0)
1334 + g_mq:subscribe(TEST, 0)
1340 1340  
1341 1341  end
1342 1342