Exemplo n.º 1
0
        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
        }
Exemplo n.º 2
0
 protected override void CreateInstance()
 {
     message = new ApiMessage(SerialApiCommands[0], CreateInputParameters());
     if (IsSequenceNumberRequired)
     {
         message.SetSequenceNumber(SequenceNumber);
     }
     handler = new ApiHandler(HandlerType, SerialApiCommands[0]);
 }
Exemplo n.º 3
0
 protected override void CreateInstance()
 {
     message = new ApiMessage(SerialApiCommands[0], CreateInputParameters()); // no seqNo
     if (IsSequenceNumberRequired)
     {
         message.SetSequenceNumber(SequenceNumber);
     }
     message.IsNoAck = _isNoAck;
 }
Exemplo n.º 4
0
        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),
            });
        }