						</div>
							
							
								
									<pre class="code prettyprint">// Javascript code
function enableAllOffTimer () {
  var options = {
     allOffTimer : true
  };
    
  function successCb() {
     // Do something
  }

  function failureCb(cbObject) {
     var errorCode = cbObject.errorCode;
     var errorText = cbObject.errorText;
     console.log ("Error Code [" + errorCode + "]: " + errorText);
  }

  var power = new Power();
  power.enableAllOffTimer(successCb, failureCb, options);
}</pre>
	