protected override void CreateInstance() { _messageStart = new ApiMessage(CommandTypes.CmdZWaveAddNodeToNetwork, (byte)(Modes.NodeOptionNetworkWide | Modes.NodeSmartStart)); _messageStart.SetSequenceNumber(SequenceNumber); _messageStop = new ApiMessage(CommandTypes.CmdZWaveAddNodeToNetwork, new byte[] { (byte)Modes.NodeStop }); _messageStop.SetSequenceNumber(0); //NULL funcID = 0 }
protected override void CreateInstance() { message = new ApiMessage(SerialApiCommands[0], CreateInputParameters()); if (IsSequenceNumberRequired) { message.SetSequenceNumber(SequenceNumber); } handler = new ApiHandler(HandlerType, SerialApiCommands[0]); }
protected override void CreateInstance() { message = new ApiMessage(SerialApiCommands[0], CreateInputParameters()); // no seqNo if (IsSequenceNumberRequired) { message.SetSequenceNumber(SequenceNumber); } message.IsNoAck = _isNoAck; }
protected override void CreateInstance() { Message = new ApiMessage(SerialApiCommands[0], CreateInputParameters()); Message.SetSequenceNumber(SequenceNumber); HandlerOk = new ApiHandler(SerialApiCommands[0]); HandlerOk.AddConditions(new ByteIndex(0x01)); HandlerFailed = new ApiHandler(SerialApiCommands[0]); HandlerFailed.AddConditions(new ByteIndex(0x00)); CallbackHandler = new ApiHandler(FrameTypes.Request, SerialApiCommands[0]); CallbackHandler.AddConditions(new ByteIndex[] { new ByteIndex(SequenceNumber), }); }