예제 #1
0
 public override void Parse(IPacketParser parser)
 {
     //eat packet bytes -- they will be save to bytearray and stored in response
     parser.ReadRemainingBytes();
     // TODO gotta save it because it isn't know to the enum apiId won't
     GenericApiId = (byte)parser.ApiId;
 }
예제 #2
0
 public override void Parse(IPacketParser parser)
 {
     //eat packet bytes -- they will be save to bytearray and stored in response
     parser.ReadRemainingBytes();
     // TODO gotta save it because it isn't know to the enum apiId won't
     GenericApiId = (byte)parser.ApiId;
 }
예제 #3
0
        public override void Parse(IPacketParser parser)
        {
            Source = parser.ApiId == ApiId.Rx16Response
                         ? (XBeeAddress) parser.ParseAddress16()
                         : parser.ParseAddress64();

            base.Parse(parser);

            Payload = parser.ReadRemainingBytes();
        }
예제 #4
0
        public override void Parse(IPacketParser parser)
        {
            Source = parser.ApiId == ApiId.Rx16Response
                         ? (XBeeAddress)parser.ParseAddress16()
                         : parser.ParseAddress64();

            base.Parse(parser);

            Payload = parser.ReadRemainingBytes();
        }
예제 #5
0
        public override void Parse(IPacketParser parser)
        {
            base.Parse(parser);

            Command = UshortUtils.ToUshort(
                parser.Read("AT Response Char 1"),
                parser.Read("AT Response Char 2"));

            Status = (AtResponseStatus)parser.Read("AT Response Status");
            Value  = parser.ReadRemainingBytes();
        }
예제 #6
0
        public override void Parse(IPacketParser parser)
        {
            base.Parse(parser);

            Command = UshortUtils.ToUshort(
                parser.Read("AT Response Char 1"),
                parser.Read("AT Response Char 2"));

            Status = (AtResponseStatus) parser.Read("AT Response Status");
            Value = parser.ReadRemainingBytes();
        }
예제 #7
0
        public override void Parse(IPacketParser parser)
        {
            FrameId = parser.Read("Frame Id");

            RemoteSerial = parser.ParseAddress64();
            RemoteAddress = parser.ParseAddress16();

            Command = UshortUtils.ToUshort(
                parser.Read("AT Response Char 1"),
                parser.Read("AT Response Char 2"));

            Status = (AtResponseStatus) parser.Read("AT Response Status");
            Value = parser.ReadRemainingBytes();
        }
예제 #8
0
        public override void Parse(IPacketParser parser)
        {
            FrameId = parser.Read("Frame Id");

            RemoteSerial  = parser.ParseAddress64();
            RemoteAddress = parser.ParseAddress16();

            Command = UshortUtils.ToUshort(
                parser.Read("AT Response Char 1"),
                parser.Read("AT Response Char 2"));

            Status = (AtResponseStatus)parser.Read("AT Response Status");
            Value  = parser.ReadRemainingBytes();
        }
예제 #9
0
 protected override void ParseFramePayload(IPacketParser parser)
 {
     Payload = parser.ReadRemainingBytes();
 }
예제 #10
0
 protected override void ParseFramePayload(IPacketParser parser)
 {
     Payload = parser.ReadRemainingBytes();
 }