Difference between revisions of "Function devices.system.ResetOut()"

From wiki.netio-products.com
Jump to navigation Jump to search
(Založena nová stránka s textem „Resets the outlet: if it was off, it stays off. If it was on, it is turned off for specified time (its led blinks green), and then turned on again. Support…“)
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
Resets the outlet: if it was off, it stays off. If it was on, it is turned off for specified time (its led blinks green), and then turned on again. Supported firmware: 2.3.2+
+
{{DISPLAYTITLE:function devices.system.ResetOut()}}
  <i>nil</i> devices.system.ResetOut{<u>config</u>}
+
Resets the outlet: if it was off, it stays off. If it was on, it is turned off for specified time (its led blinks green), and then turned on again.
 +
  <i>nil</i> <b>devices.system.ResetOut</b>(<i>table</i> <code>config</code>)
  
 
=== Parameters ===
 
=== Parameters ===
  <i>table</i> <u>config</u>
+
  <i>table</i> config{<code>output</code>, <code style="color: #777">resetDelay</code>}
* <i>number</i> <u>output</u> outlet to reset (1 to 4)
+
* <i>number</i> <code>output</code> outlet to reset (1 to 4)
* optional <i>number</i> <u>resetDelay</u> time period (in seconds) to keep the outlet off (default 1)
+
* optional <i>number</i> <code>resetDelay</code> time period (in seconds) to keep the outlet off (default 1)
  
 
=== Return value ===
 
=== Return value ===

Latest revision as of 19:27, 5 May 2017

Resets the outlet: if it was off, it stays off. If it was on, it is turned off for specified time (its led blinks green), and then turned on again.

nil devices.system.ResetOut(table config)

Parameters

table config{output, resetDelay}
  • number output outlet to reset (1 to 4)
  • optional number resetDelay time period (in seconds) to keep the outlet off (default 1)

Return value

nil

Usage

-- turns outlet No.1 off and resets its previous state after 10 seconds
devices.system.ResetOut{output=1,resetDelay=10}