Exemplo n.º 1
0
 public ControllerChangeOperation(ControllerChangeModes mode, Action <NodeStatuses> nodeStatusCallback, bool isModeStopEnabled, int timeoutMs)
     : base(true, CommandTypes.CmdZWaveControllerChange, true)
 {
     IsModeStopEnabled  = isModeStopEnabled;
     IsExclusive        = IsModeStopEnabled;
     InitMode           = mode;
     TimeoutMs          = timeoutMs;
     NodeStatusCallback = nodeStatusCallback;
     if (TimeoutMs <= 0)
     {
         TimeoutMs = TIMEOUT;
     }
 }
Exemplo n.º 2
0
 public ActionToken ControllerChange(ControllerChangeModes mode, bool isModeStopEnabled, int timeoutMs, Action <IActionItem> completedCallback)
 {
     ResetNodeStatusSignals();
     return(ExecuteAsync(new ControllerChangeOperation(mode, SetNodeStatusSignal, isModeStopEnabled, timeoutMs), completedCallback));
 }
Exemplo n.º 3
0
 public ControllerChangeOperation(ControllerChangeModes mode, Action <NodeStatuses> nodeStatusCallback, int timeoutMs)
     : this(mode, nodeStatusCallback, true, timeoutMs)
 {
 }
Exemplo n.º 4
0
 public AddRemoveNodeResult ControllerChange(ControllerChangeModes mode, int timeoutMs)
 {
     ResetNodeStatusSignals();
     return((AddRemoveNodeResult)Execute(new ControllerChangeOperation(mode, SetNodeStatusSignal, timeoutMs)));
 }