Exemple #1
0
        protected override void CreateInstance()
        {
            message = new ApiMessage(CommandTypes.CmdZWaveSetPriorityRoute, Destination);
            message.AddData(PriorityRoute);
            message.AddData(RouteSpeed);


            handler = new ApiHandler(CommandTypes.CmdZWaveSetPriorityRoute);
            handler.AddConditions(new ByteIndex(Destination));
        }
        protected override void CreateInstance()
        {
            message = new ApiMessage(CommandTypes.CmdSerialApiTest,
                                     TestCmd,
                                     (byte)(TestDelay >> 8),
                                     (byte)TestDelay,
                                     TestPayloadLength,
                                     (byte)(TestCount >> 8),
                                     (byte)TestCount,
                                     (byte)TxOptions,
                                     (byte)TestNodeMask.Length);
            message.AddData(TestNodeMask);
            message.SetSequenceNumber(SequenceNumber);

            messageStop = new ApiMessage(CommandTypes.CmdSerialApiTest,
                                         0,
                                         0,
                                         0,
                                         0,
                                         0,
                                         0,
                                         0,
                                         0);

            handlerRetFailed = new ApiHandler(CommandTypes.CmdSerialApiTest);
            handlerRetFailed.AddConditions(new ByteIndex(0));

            handlerCallback = new ApiHandler(FrameTypes.Request, CommandTypes.CmdSerialApiTest);
        }