Changes for page 01 Lua Functions

Last modified by Devin Chen on 2026/08/18 14:08

From version 6.1
edited by Devin Chen
on 2026/08/18 14:08
Change comment: There is no comment for this version
To version 2.1
edited by Devin Chen
on 2025/09/24 15:34
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -765,7 +765,7 @@
765 765  1: reserved
766 766  
767 767  (((
768 -== **mqtt.create(string serverurl, string clientid[, int useDomain])** ==
768 +== **mqtt.create(string serverurl, string clientid)** ==
769 769  )))
770 770  
771 771  **Function:** Create an MQTT object
... ... @@ -784,8 +784,6 @@
784 784  
785 785  //clientid//: Client ID
786 786  
787 -//int useDomain: //0: convert to IP for connection, 1: use domain name for connection.
788 -
789 789  **Return:**
790 790  
791 791  Succeed: MQTT object
... ... @@ -1357,27 +1357,10 @@
1357 1357  end
1358 1358  {{/code}}
1359 1359  
1360 -{{info}}
1361 -If your Lua script throws the error **module 'http' not found** or **module 'https' not found**, please first check the firmware version of the V‑BOX.
1358 +(((
1359 +
1360 +)))
1362 1362  
1363 -For H series & E series (E01 firmware), use the scripts below to load the corresponding modules:
1364 -
1365 -~-~- Load required modules for HTTP requests
1366 -local http = require("socket.http")
1367 -
1368 -~-~- Load required modules for HTTPS requests
1369 -local https = require("https")
1370 -
1371 -For E series (E02 firmware), use the scripts below to load the corresponding modules:
1372 -
1373 -​​~-~- Load required modules for HTTP requests
1374 -local http = require("socket.http")
1375 -
1376 -~-~- Load required modules for HTTPS requests
1377 -local https = require("socket.https")
1378 -{{/info}}
1379 -
1380 -
1381 1381  (((
1382 1382  = **8 General Functions** =
1383 1383  )))
... ... @@ -1799,18 +1799,16 @@
1799 1799  end
1800 1800  {{/code}}
1801 1801  
1802 -= **11 MySQL database operation** =
1783 += **11 MySQL database operation** =
1803 1803  
1804 -{{info}}
1805 -Note: E series V-box with E02 firmware doesn't support
1806 -{{/info}}
1807 -
1808 1808  == **luaMySql.init(string sourcename, string username, string password, string host, number port, string character)** ==
1809 1809  
1787 +
1810 1810  **Function:** Configure database connection parameters
1811 1811  
1812 1812  **Parameters:**
1813 1813  
1792 +
1814 1814  sourcename: Database name
1815 1815  
1816 1816  username: Connection username
... ... @@ -1835,6 +1835,7 @@
1835 1835  
1836 1836  **Parameters:**
1837 1837  
1817 +
1838 1838  statement: The given SQL statement
1839 1839  
1840 1840  **Returns:**
... ... @@ -1849,6 +1849,7 @@
1849 1849  
1850 1850  **Parameters:**
1851 1851  
1832 +
1852 1852  statement: The given SQL statement
1853 1853  
1854 1854  **Returns:**