Ejemplo n.º 1
0
 public void SetAddressInformation(KNXAddress Address, FahSystemID fahSystemID)
 {
     if (this.KnxAddress != Address || fahSystemID != SystemID)
     {
         this.KnxAddress = Address;
         this.SystemID   = fahSystemID;
     }
 }
Ejemplo n.º 2
0
        public FaHDevice()
        {
            SystemID   = new FahSystemID(0xff, 0xff);
            DeviceType = FaHDeviceType.TypeNotDefined;

            Random rnd = new Random();

            Byte[] rndConsitancyID = new Byte[2];
            rnd.NextBytes(rndConsitancyID);
            ConsistancyValue = new KNXu16SimpleStruct(rndConsitancyID);
        }
Ejemplo n.º 3
0
        public static FahSystemID FromByteArray(byte[] input, UInt16 begin)
        {
            if (input.Length - begin < 2)
            {
                throw new InternalBufferOverflowException();
            }

            byte[] target = new byte[2];


            FahSystemID n = new FahSystemID
            {
                SystemID = BitConverter.ToUInt16(input, begin)
            };

            return(n);
        }