Exemple #1
0
        public ReadAttributesResponse(byte[] payload) : base(payload)
        {
            int start = IsManufacturerSpecific ? 9 : 8;
            var attr  = new List <AttributeRecord>(AttributeCount);

            for (int i = 0; i < AttributeCount; i++)
            {
                int             length = 0;
                AttributeRecord rec    = new AttributeRecord(payload, start, out length, true);
                attr.Add(rec);
                start += length;
            }
            Attributes = new AttributesCollection(attr);
        }
		public ReportAttributesResponse(byte[] payload)
			: base(payload)
		{
			int start = IsManufacturerSpecific ? 9 : 8;
			var attr = new List<AttributeRecord>(AttributeCount);
			for (int i = 0; i < AttributeCount; i++)
			{
				int length = 0;
				AttributeRecord rec = new AttributeRecord(payload, start, out length);
				attr.Add(rec);
				start += length;
			}
			Attributes = new AttributesCollection(attr);
		}