Changes for page Lua Script

Last modified by Joe on 2026/05/18 09:33

From version 13.1
edited by Joe
on 2026/05/18 09:33
Change comment: There is no comment for this version
To version 11.1
edited by xingzhi lin
on 2025/11/03 11:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.joe
1 +XWiki.lxz
Content
... ... @@ -1563,7 +1563,7 @@
1563 1563  timer.create(0, 2, 1000, callback)
1564 1564  
1565 1565  -- Create a timer for global execution, which should follow the unique ID
1566 -timer.create(-1, 1, 1000, function() print("This is global timer test.") end)
1566 +timer.create(-- 1, 1, 1000, function() print("This is global timer test.") end)
1567 1567  {{/code}}
1568 1568  
1569 1569  == [[timer.set_status>>||anchor="HTimer"]] ==
... ... @@ -3373,7 +3373,7 @@
3373 3373  
3374 3374  == [[mqtt.create>>||anchor="HMQTT"]] ==
3375 3375  
3376 -Prototype: mqtt.create(serverurl, clientid[, int useDomain])
3376 +Prototype: mqtt.create(serverurl, clientid)
3377 3377  
3378 3378  Function: Create mqtt client object
3379 3379  
... ... @@ -3384,7 +3384,6 @@
3384 3384   host: Hostname/IP address
3385 3385   port: such as 1883
3386 3386  * clientid(string): client ID
3387 -* int useDomain: 0 (Try converting to IP for connection); 1(Use domain name for connection)
3388 3388  
3389 3389  Return:
3390 3390