NETIO Lua Reference

From wiki.netio-products.com
Revision as of 14:54, 19 June 2019 by Phrych (talk | contribs) (Socket Communication)
Jump to navigation Jump to search

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

JSON Processing 3.3.0

json

  • function .decode() - parse json string into obj table
  • function .encode() - generate JSON string from table

(based on dkjson)

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