public void SetAddressInformation(KNXAddress Address, FahSystemID fahSystemID) { if (this.KnxAddress != Address || fahSystemID != SystemID) { this.KnxAddress = Address; this.SystemID = fahSystemID; } }
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); }
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); }