/// <summary> /// Deserializes the specified bytes. /// </summary> /// <param name="bytes">The bytes.</param> public override void Deserialize(byte[] bytes) { if (bytes[0] != 4) { throw new KnxException("Could not parse ConnectionRequest: " + bytes); } this.CommunicationChannel = bytes[1]; this.SequenceCounter = bytes[2]; // bytes[3] is reserved (should be always 0x00) // starting at byte index 4 this.Cemi = KnxMessage.Deserialize(bytes.ExtractBytes(4)); }
public override void Deserialize(byte[] bytes) { Cemi = KnxMessage.Deserialize(bytes.ExtractBytes(0)); }