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; }
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; } }
public ActionToken SetSlaveLearnMode(byte nodeId, SlaveLearnModes mode, int timeoutMs, Action <IActionItem> completedCallback) { SetSlaveLearnModeOperation oper = new SetSlaveLearnModeOperation(nodeId, mode, SetAssignStatusSignal, timeoutMs); return(ExecuteAsync(oper, completedCallback)); }
public SetLearnModeResult SetSlaveLearnMode(byte nodeId, SlaveLearnModes mode, int timeoutMs) { return((SetLearnModeResult)Execute(new SetSlaveLearnModeOperation(nodeId, mode, SetAssignStatusSignal, timeoutMs))); }