Difference between revisions of "NETIO Lua Reference"

From wiki.netio-products.com
Jump to navigation Jump to search
(Miscellaneous)
(Redirected page to NETIO Specific Reference manual)
(Tag: New redirect)
 
(23 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Outlet Management ==
+
#REDIRECT [[NETIO Specific Reference manual]]
<big><b> devices.system </b></big>
 
* function [[Function devices.system.SetOut()|.SetOut()]] - turns the outlet on or off
 
* function [[Function devices.system.ResetOut()|.ResetOut()]] - turns the outlet off and then resets its previous state
 
* string [[String devices.system.output1_state|.output1_state]] - outlet's state
 
* number [[Number devices.system.output1_consumption|.output1_consumption]] - outlet's consumption (in Watts)
 
* number [[Number devices.system.output1_cumulatedConsumption|.output1_cumulatedConsumption]] - outlet's consumed energy (in Watthours)
 
* function [[Function devices.system.resetCumulativeConsumption()|.resetCumulativeConsumption()]] - resets outlet's energy counter
 
* string [[String devices.system.output1_consumptionStart|.output1_consumptionStart]] - date and time since the last energy counter reset
 
 
 
== Socket System Management ==
 
<big><b> devices.system</b> </big>
 
* number [[number devices.system.averageLoad|.averageLoad]] - socket's CPU load
 
* function [[Function devices.system.Reboot()|.Reboot()]] - reboot socket's system
 
* number [[Number devices.system.sessionCount|.sessionCount]] - number of connected users
 
* number [[Number devices.system.freeSpace|.freeSpace]] - free disk space
 
* number [[Number devices.system.totalSpace|.totalSpace]] - total disk space
 
 
 
== Socket Communication ==
 
* function [[Function ping()|ping()]] - tests socket's network responsivity
 
* function [[Function mail()|mail()]] - sends e-mail
 
* function [[Function devices.system.CustomCGI()|devices.system.CustomCGI()]] - send HTTP request
 
* function [[Function cgiGet()|cgiGet()]] - send HTTP request and receive response
 
 
 
== Miscellaneous ==
 
* function [[Function log()|log()]] - insert a record to the socket's event log
 
* function [[Function logf()|logf()]] - insert a formated record (incl. numbers) to the socket's event log
 
* function [[Function delay()|delay()]] - delays script's execution by specified seconds
 
* function [[Function milliDelay()|milliDelay()]] - delays script's execution by specified milliseconds
 
* function [[Function toboolean()|toboolean()]] - converts any variable to boolean type
 

Latest revision as of 17:51, 11 July 2019