public BacnetDeviceObjectPropertyReference(BacnetObjectId objectIdentifier, BacnetPropertyIds propertyIdentifier, BacnetObjectId?deviceIndentifier = null, uint arrayIndex = ASN1.BACNET_ARRAY_ALL)
 {
     this.objectIdentifier   = objectIdentifier;
     this.propertyIdentifier = propertyIdentifier;
     this.arrayIndex         = arrayIndex;
     this.deviceIndentifier  = deviceIndentifier ?? new BacnetObjectId(BacnetObjectTypes.MAX_BACNET_OBJECT_TYPE, 0);
 }
示例#2
0
 public DeviceReportingRecipient(BacnetBitString weekofDay, DateTime fromTime, DateTime toTime, BacnetAddress adr, uint processIdentifier, bool ackRequired, BacnetBitString evenType)
 {
     Id                     = new BacnetObjectId();
     WeekofDay              = weekofDay;
     this.toTime            = toTime;
     this.fromTime          = fromTime;
     this.adr               = adr;
     this.processIdentifier = processIdentifier;
     Ack_Required           = ackRequired;
     this.evenType          = evenType;
 }
示例#3
0
        public DeviceReportingRecipient(BacnetValue v0, BacnetValue v1, BacnetValue v2, BacnetValue v3, BacnetValue v4, BacnetValue v5, BacnetValue v6)
        {
            Id  = new BacnetObjectId();
            adr = null;

            WeekofDay = (BacnetBitString)v0.Value;
            fromTime  = (DateTime)v1.Value;
            toTime    = (DateTime)v2.Value;
            if (v3.Value is BacnetObjectId)
            {
                Id = (BacnetObjectId)v3.Value;
            }
            else
            {
                var netdescr = (BacnetValue[])v3.Value;
                var s        = (ushort)(uint)netdescr[0].Value;
                var b        = (byte[])netdescr[1].Value;
                adr = new BacnetAddress(BacnetAddressTypes.IP, s, b);
            }
            processIdentifier = (uint)v4.Value;
            Ack_Required      = (bool)v5.Value;
            evenType          = (BacnetBitString)v6.Value;
        }
 public BacnetReadAccessSpecification(BacnetObjectId objectIdentifier, IList <BacnetPropertyReference> propertyReferences)
 {
     this.objectIdentifier   = objectIdentifier;
     this.propertyReferences = propertyReferences;
 }
 public BacnetReadAccessResult(BacnetObjectId objectIdentifier, IList <BacnetPropertyValue> values)
 {
     this.objectIdentifier = objectIdentifier;
     this.values           = values;
 }