Difference between revisions of "Function devices.system.SetOut()"
								
								Jump to navigation
				Jump to search
				
				
							
								
							
		| Line 1: | Line 1: | ||
| {{DISPLAYTITLE:function devices.system.SetOut()}} | {{DISPLAYTITLE:function devices.system.SetOut()}} | ||
| Changes the state (on or off) of the outlet. | Changes the state (on or off) of the outlet. | ||
| − |   <i>nil</i> devices.system.SetOut{<code>config</code>} | + |   <i>nil</i> <b>devices.system.SetOut</b>{<code>config</code>} | 
| === Parameters === | === Parameters === | ||
Revision as of 19:47, 18 April 2017
Changes the state (on or off) of the outlet.
nil devices.system.SetOut{config}
Parameters
table config
- number outputoutlet to change (1 to 4)
- boolean valuetrue = turn on, false = turn off
Return value
nil
Usage
-- turns outlet No.1 on
devices.system.SetOut{output=1,value=true}
See also
- devices.system.ResetOut() to conveniently reset the state
