NETIO Lua Reference: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 18: | Line 18: | ||
== Socket Communication == | == Socket Communication == | ||
* function [[Function ping()| | * function [[Function ping()|ping()]] - tests socket's network responsivity | ||
* function [[Function mail()| | * function [[Function mail()|mail()]] - sends e-mail | ||
* function [[Function cgiGet()| | * function [[Function cgiGet()|cgiGet()]] - | ||
* function [[Function devices.system.CustomCGI()|.CustomCGI()]] - | * function [[Function devices.system.CustomCGI()|devices.system.CustomCGI()]] - | ||
== Miscellaneous == | == Miscellaneous == | ||
* function [[Function log()| | * function [[Function log()|log()]] - | ||
* function [[Function logf()| | * function [[Function logf()|logf()]] - | ||
* function [[Function delay()| | * function [[Function delay()|delay()]] - | ||
* function [[Function milliDelay()| | * function [[Function milliDelay()|milliDelay()]] - | ||
* function [[Function toboolean()| | * function [[Function toboolean()|toboolean()]] - | ||
Revision as of 23:05, 14 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
- function .averageLoad() - CPU load in last 5 minutes
- 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 cgiGet() -
- function devices.system.CustomCGI() -
Miscellaneous
- function log() -
- function logf() -
- function delay() -
- function milliDelay() -
- function toboolean() -