Difference between revisions of "NETIO Specific Reference manual"

From wiki.netio-products.com
Jump to navigation Jump to search
(Script triggers)
(Socket System Management)
 
Line 29: Line 29:
 
* 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.1</code></sup> - returns serial number of the device (Eth Interface MAC address)
 
* string [[String devices.system.serialNumber|.serialNumber]] <sup><code>3.3.1</code></sup> - returns serial number of the device (Eth Interface MAC address)
* number [[Number devices.system.voltage|.voltage]] - socket's voltage
+
* number [[Number devices.system.voltage|.voltage]] <sup><code>3.0.0</code></sup> - socket's voltage
* number [[Number devices.system.overallPowerFactor|.overallPowerFactor]] - overall power factor
+
* number [[Number devices.system.overallPowerFactor|.overallPowerFactor]] <sup><code>3.0.0</code></sup> - overall power factor
* number [[Number devices.system.frequency|.frequency]] - socket's frequency
+
* number [[Number devices.system.frequency|.frequency]] <sup><code>3.0.0</code></sup> - socket's frequency
* number [[Number devices.system.totalCurrent|.totalCurrent]] - total current through socket
+
* number [[Number devices.system.totalCurrent|.totalCurrent]] <sup><code>3.0.0</code></sup> - total current through socket
* number [[Number devices.system.totalLoad|.totalLoad]] - total load on socket
+
* number [[Number devices.system.totalLoad|.totalLoad]] <sup><code>3.0.0</code></sup> - total load on socket
* number [[Number devices.system.totalEnergy|.totalEnergy]] - total energy consumed by socket
+
* number [[Number devices.system.totalEnergy|.totalEnergy]] <sup><code>3.0.0</code></sup> - total energy consumed by socket
* string [[Number devices.system.energyStart|.energyStart]] - time of last consumption reset
+
* string [[Number devices.system.energyStart|.energyStart]] <sup><code>3.0.0</code></sup> - time of last consumption reset
 
 
  
 
== Socket Communication ==
 
== Socket Communication ==

Latest revision as of 19:45, 11 July 2019

Script triggers

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.1

json

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

(based on dkjson)

Modbus 3.3.1

Read functions

Write functions

MQTT 3.3.1

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