Difference between revisions of "NETIO Lua Reference"
Jump to navigation
Jump to search
(→Socket Communication) |
(→Miscellaneous) |
||
Line 24: | Line 24: | ||
== Miscellaneous == | == Miscellaneous == | ||
− | * function [[Function log()|log()]] - | + | * function [[Function log()|log()]] - insert a record to the socket's event log |
− | * function [[Function logf()|logf()]] - | + | * function [[Function logf()|logf()]] - insert a formated record (incl. numbers) to the socket's event log |
* function [[Function delay()|delay()]] - | * function [[Function delay()|delay()]] - | ||
* function [[Function milliDelay()|milliDelay()]] - | * function [[Function milliDelay()|milliDelay()]] - | ||
* function [[Function toboolean()|toboolean()]] - | * function [[Function toboolean()|toboolean()]] - |
Revision as of 17:36, 18 April 2017
Outlet Management
devices.system
- function .SetOut() - turns the outlet on or off
- function .ResetOut() - turns the outlet off and then resets its previous state
- string .output1_state - outlet's state
- number .output1_consumption - outlet's consumption (in Watts)
- number .output1_cumulatedConsumption - outlet's consumed energy (in Watthours)
- function .resetCumulativeConsumption() - resets outlet's energy counter
- string .output1_consumptionStart - date and time since the last energy counter reset
Socket System Management
devices.system
- number .averageLoad - socket's CPU load
- function .Reboot() - reboot socket's system
- number .sessionCount - number of connected users
- number .freeSpace - free disk space
- number .totalSpace - total disk space
Socket Communication
- function ping() - tests socket's network responsivity
- function mail() - sends e-mail
- function devices.system.CustomCGI() - send HTTP request
- function cgiGet() - send HTTP request and receive response
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() -
- function milliDelay() -
- function toboolean() -