Changes for page 01 Lua Functions

Last modified by Theodore Xu on 2023/10/26 10:51

From version 5.30
edited by Stone Wu
on 2022/07/12 10:42
Change comment: There is no comment for this version
To version 5.34
edited by Stone Wu
on 2022/07/12 10:55
Change comment: (Autosaved)

Summary

Details

Page properties
Content
... ... @@ -1781,9 +1781,9 @@
1781 1781  end
1782 1782  {{/code}}
1783 1783  
1784 -= **11 Special function for V-NET** =
1784 += **10 Special function for V-NET** =
1785 1785  
1786 -**normal_get_alldata()**
1786 +== **normal_get_alldata()** ==
1787 1787  
1788 1788  **Function: **Obtain the data of all the monitoring points
1789 1789  
... ... @@ -1819,3 +1819,56 @@
1819 1819  }
1820 1820  
1821 1821  Failed: table, empty table
1822 +
1823 +== **normal_setdata_byname(string name, string data)** ==
1824 +
1825 +**Function:** Write data to the monitoring point name
1826 +
1827 +**Parameter:**
1828 +
1829 +name: the name of monitoring point
1830 +
1831 +data: the data to be written
1832 +
1833 +**Return:**
1834 +
1835 +Succeed: string: The value of the monitor point before it is written
1836 +
1837 +Failed: mil
1838 +
1839 +== **normal_getdata_byname(string name)** ==
1840 +
1841 +
1842 +
1843 +
1844 +**Function:** Read the data of the monitoring point name
1845 +
1846 +**Parameter:**
1847 +
1848 +name: the name of monitoring point
1849 +
1850 +**Return:**
1851 +
1852 +Succeed: string
1853 +
1854 +Failed: mil
1855 +
1856 += **11 MySQL database operation** =
1857 +
1858 +== **luaMySql.init(string sourcename, string username, string password, string host, number port, string character)** ==
1859 +
1860 +**Function:** Configure database connection parameters
1861 +
1862 +**Parameter:**
1863 +
1864 +sourcename: the name of database
1865 +
1866 +username: the connected username
1867 +
1868 +password:
1869 +
1870 +**Return:**
1871 +
1872 +Succeed: string
1873 +
1874 +Failed: mil