imBMW.iBus.Message.init C# (CSharp) Method

init() protected method

protected init ( byte source, byte destination, byte data, int packetLength, byte check, string description = null ) : void
source byte
destination byte
data byte
packetLength int
check byte
description string
return void
        protected void init(byte source, byte destination, byte[] data, int packetLength, byte check, string description = null)
        {
            if (source.IsInternal() || destination.IsInternal())
            {
                throw new Exception("iBus messages are not for internal devices.");
            }

            this.source = source;
            this.destination = destination;
            Data = data;
            ReceiverDescription = description;
            PacketLength = packetLength;
            CRC = check;
        }

Same methods

Message::init ( byte source, byte destination, byte data, string description = null ) : void