function devices.system.SetOut()

From wiki.netio-products.com
Revision as of 18:28, 5 May 2017 by Jturon (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Changes the state (on or off) of the outlet.

nil devices.system.SetOut(table config)

Parameters

table config{output, value}
  • number output outlet to change (1 to 4)
  • boolean value
    • true = turn on
    • false = turn off

Return value

nil

Usage

-- turns outlet No.1 on
devices.system.SetOut{output=1,value=true}

See also