Difference between revisions of "NETIO Lua Reference"

From wiki.netio-products.com
Jump to navigation Jump to search
m (Jturon přesunul stránku Netio Lua Reference na NETIO Lua Reference)
(Socket System Management)
Line 16: Line 16:
 
* number [[Number devices.system.freeSpace|.freeSpace]] - free disk space
 
* number [[Number devices.system.freeSpace|.freeSpace]] - free disk space
 
* number [[Number devices.system.totalSpace|.totalSpace]] - total disk space
 
* number [[Number devices.system.totalSpace|.totalSpace]] - total disk space
 +
* string [[String devices.system.serialNumber|.serialNumber]] <sup><code>3.3.0</code></sup> - returns serial number of the device (Eth Interface MAC address)
  
 
== Socket Communication ==
 
== Socket Communication ==

Revision as of 17:21, 28 May 2019

Outlet Management

devices.system

Socket System Management

devices.system

Socket Communication

XML Processing 2.3.6

xml

  • function .escape() - escapes XML string to fit xml node contents
  • function .check() - tests if string is well-formed XML
  • function .parse() - parses XML string into XmlElement object

Standard Lua Functions

Miscellaneous

  • function log() - insert a record to the socket's event log
  • function logf() - insert a formated record (incl. numbers) to the socket's event log
  • function delay() - execute function with delay (seconds)
  • function milliDelay() - execute function with delay (milliseconds)
  • function toboolean() - converts any variable to boolean type