コード例 #1
0
 public SetSlaveLearnModeOperation(byte nodeId, SlaveLearnModes mode, Action <AssignStatuses> assignStatusCallback, TransmitOptions txOptions, int timeoutMs)
     : base(true, new CommandTypes[] { CommandTypes.CmdZWaveSetSlaveLearnMode, CommandTypes.CmdZWaveSendSlaveNodeInfo }, true)
 {
     Mode      = mode;
     NodeId    = nodeId;
     TxOptions = (byte)txOptions;
 }
コード例 #2
0
 public SetSlaveLearnModeOperation(byte nodeId, SlaveLearnModes mode, Action <AssignStatuses> assignStatusCallback, int timeoutMs)
     : base(true, new CommandTypes[] { CommandTypes.CmdZWaveSetSlaveLearnMode, CommandTypes.CmdZWaveSendSlaveNodeInfo }, true)
 {
     Mode                 = mode;
     NodeId               = nodeId;
     TimeoutMs            = timeoutMs;
     AssignStatusCallback = assignStatusCallback;
     if (TimeoutMs <= 0)
     {
         TimeoutMs = TIMEOUT;
     }
 }
コード例 #3
0
        public ActionToken SetSlaveLearnMode(byte nodeId, SlaveLearnModes mode, int timeoutMs, Action <IActionItem> completedCallback)
        {
            SetSlaveLearnModeOperation oper = new SetSlaveLearnModeOperation(nodeId, mode, SetAssignStatusSignal, timeoutMs);

            return(ExecuteAsync(oper, completedCallback));
        }
コード例 #4
0
 public SetLearnModeResult SetSlaveLearnMode(byte nodeId, SlaveLearnModes mode, int timeoutMs)
 {
     return((SetLearnModeResult)Execute(new SetSlaveLearnModeOperation(nodeId, mode, SetAssignStatusSignal, timeoutMs)));
 }