How to use the bacpypes.object.OptionalProperty function in bacpypes

To help you get started, we’ve selected a few bacpypes examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github JoelBender / bacpypes / tests / test_objects / test_AccessPointObject.py View on Github external
, (OptionalProperty,'accessEventAuthenticationFactor', AuthenticationFactor)
        , (ReadableProperty,'accessDoors', ArrayOf(DeviceObjectReference))
        , (ReadableProperty,'priorityForWriting', Unsigned)
        , (OptionalProperty,'musterPoint', Boolean)
        , (OptionalProperty,'zoneTo', DeviceObjectReference)
        , (OptionalProperty,'zoneFrom', DeviceObjectReference)
        , (OptionalProperty,'notificationClass', Unsigned)
        , (OptionalProperty,'transactionNotificationClass', Unsigned)
        , (OptionalProperty,'accessAlarmEvents', SequenceOf(AccessEvent))
        , (OptionalProperty,'accessTransactionEvents', SequenceOf(AccessEvent))
        , (OptionalProperty,'eventEnable', EventTransitionBits)
        , (OptionalProperty,'ackedTransitions', EventTransitionBits)
        , (OptionalProperty,'notifyType', NotifyType)
        , (OptionalProperty,'eventTimeStamps', ArrayOf(TimeStamp))
        , (OptionalProperty,'eventMessageTexts', ArrayOf(CharacterString))
        , (OptionalProperty,'eventMessageTextsConfig', ArrayOf(CharacterString))
        , (OptionalProperty,'eventDetectionEnable', Boolean)
        , (OptionalProperty,'eventAlgorithmInhibitRef', ObjectPropertyReference)
        , (OptionalProperty,'eventAlgorithmInhibit', Boolean)
        , (OptionalProperty,'reliabilityEvaluationInhibit', Boolean)
        ]
github JoelBender / bacpypes / tests / test_objects / test_PositiveIntegerValueObject.py View on Github external
, (OptionalProperty,'timeDelay', Unsigned)
        , (OptionalProperty,'notificationClass', Unsigned)
        , (OptionalProperty,'highLimit', Unsigned)
        , (OptionalProperty,'lowLimit', Unsigned)
        , (OptionalProperty,'deadband', Unsigned)
        , (OptionalProperty,'limitEnable', LimitEnable)
        , (OptionalProperty,'eventEnable', EventTransitionBits)
        , (OptionalProperty,'ackedTransitions', EventTransitionBits)
        , (OptionalProperty,'notifyType', NotifyType)
        , (OptionalProperty,'eventTimeStamps', ArrayOf(TimeStamp))
        , (OptionalProperty,'eventMessageTexts', ArrayOf(CharacterString))
        , (OptionalProperty,'eventMessageTextsConfig', ArrayOf(CharacterString))
        , (OptionalProperty,'eventDetectionEnable', Boolean)
        , (OptionalProperty,'eventAlgorithmInhibitRef', ObjectPropertyReference)
        , (OptionalProperty,'eventAlgorithmInhibit', Boolean)
        , (OptionalProperty,'timeDelayNormal', Unsigned)
        , (OptionalProperty,'reliabilityEvaluationInhibit', Boolean)
        , (OptionalProperty,'minPresValue', Unsigned)
        , (OptionalProperty,'maxPresValue', Unsigned)
        , (OptionalProperty,'resolution', Unsigned)
        ]
github JoelBender / bacpypes / tests / test_objects / test_BinaryValueObject.py View on Github external
, (OptionalProperty,'timeOfStateCountReset',DateTime)
        , (OptionalProperty,'elapsedActiveTime',Unsigned)
        , (OptionalProperty,'timeOfActiveTimeReset',DateTime)
        , (OptionalProperty,'minimumOffTime',Unsigned)
        , (OptionalProperty,'minimumOnTime',Unsigned)
        , (OptionalProperty,'priorityArray',PriorityArray)
        , (OptionalProperty,'relinquishDefault',BinaryPV)
        , (OptionalProperty,'timeDelay',Unsigned)
        , (OptionalProperty,'notificationClass',Unsigned)
        , (OptionalProperty,'alarmValue',BinaryPV)
        , (OptionalProperty,'eventEnable',EventTransitionBits)
        , (OptionalProperty,'ackedTransitions',EventTransitionBits)
        , (OptionalProperty,'notifyType',NotifyType)
        , (OptionalProperty,'eventTimeStamps', ArrayOf(TimeStamp))
        , (OptionalProperty,'eventMessageTexts', ArrayOf(CharacterString))
        , (OptionalProperty,'eventMessageTextsConfig', ArrayOf(CharacterString))
        , (OptionalProperty,'eventDetectionEnable', Boolean)
        , (OptionalProperty,'eventAlgorithmInhibitRef', ObjectPropertyReference)
        , (OptionalProperty,'eventAlgorithmInhibit', Boolean)
        , (OptionalProperty,'timeDelayNormal', Unsigned)
        , (OptionalProperty,'reliabilityEvaluationInhibit', Boolean)
        ]
github JoelBender / bacpypes / sandbox / network_port_object.py View on Github external
, OptionalProperty('ipDefaultGateway', OctetString) #401
        , OptionalProperty('ipMulticastAddress', OctetString)   #409
        , OptionalProperty('ipDNSServer', ArrayOf(OctetString)) #406
        , OptionalProperty('ipDHCPEnable', Boolean) #402
        , OptionalProperty('ipDHCPLeaseTime', Unsigned) #403
        , OptionalProperty('ipDHCPLeaseTimeRemaining', Unsigned)    #404
        , OptionalProperty('ipDHCPServer', OctetString) #405
        , OptionalProperty('ipNATTraversal', Boolean)   #410
        , OptionalProperty('ipGlobalAddress', HostNPort)    #407
        , OptionalProperty('broadcastDistributionTable', ListOf(BDTEntry))  #414
        , OptionalProperty('acceptFDRegistrations', Boolean)    #413
        , OptionalProperty('bbmdForeignDeviceTable', ListOf(FDTEntry))  #415
        , OptionalProperty('fdBBMDAddress', HostNPort)  #418
        , OptionalProperty('fdSubscriptionLifetime', Unsigned16)    #419
        , OptionalProperty('ipv6Mode', IPMode)  #435
        , OptionalProperty('ipv6Address', OctetString)  #436
        , OptionalProperty('ipv6PrefixLength', Unsigned8)   #437
        , OptionalProperty('ipv6UDPPort', Unsigned16)   #438
        , OptionalProperty('ipv6DefaultGateway', OctetString)   #439
        , OptionalProperty('ipv6MulticastAddress', OctetString) #440
        , OptionalProperty('ipv6DNSServer', OctetString)    #441
        , OptionalProperty('ipv6AutoAddressingEnabled', Boolean)    #442
        , OptionalProperty('ipv6DHCPLeaseTime', Unsigned)   #443
        , OptionalProperty('ipv6DHCPLeaseTimeRemaining', Unsigned)  #444
        , OptionalProperty('ipv6DHCPServer', OctetString)   #445
        , OptionalProperty('ipv6ZoneIndex', CharacterString)    #446
        , OptionalProperty('maxMasters', Unsigned8) # range 0-127   #64
        , OptionalProperty('maxInfoFrames', Unsigned8)  #63
        , OptionalProperty('slaveProxyEnable', Boolean) #172
        , OptionalProperty('manualSlaveAddressBinding', ListOf(AddressBinding)) #170
        , OptionalProperty('autoSlaveDiscovery', Boolean)   #169
        , OptionalProperty('slaveAddressBinding', ListOf(AddressBinding))   #171
github JoelBender / bacpypes / sandbox / network_port_object.py View on Github external
, OptionalProperty('maxMasters', Unsigned8) # range 0-127   #64
        , OptionalProperty('maxInfoFrames', Unsigned8)  #63
        , OptionalProperty('slaveProxyEnable', Boolean) #172
        , OptionalProperty('manualSlaveAddressBinding', ListOf(AddressBinding)) #170
        , OptionalProperty('autoSlaveDiscovery', Boolean)   #169
        , OptionalProperty('slaveAddressBinding', ListOf(AddressBinding))   #171
        , OptionalProperty('virtualMACAddressTable', ListOf(VMACEntry)) #429
        , OptionalProperty('routingTable', ListOf(RouterEntry)) #428
        , OptionalProperty('eventDetectionEnabled', Boolean)    #353
        , OptionalProperty('notificationClass', Unsigned)   #17
        , OptionalProperty('eventEnable', EventTransitionBits)  #35
        , OptionalProperty('ackedTransitions', EventTransitionBits) #0
        , OptionalProperty('notifyType', NotifyType)    #72
        , OptionalProperty('eventTimeStamps', ArrayOf(TimeStamp, 3))    #130
        , OptionalProperty('eventMessageTexts', ArrayOf(CharacterString, 3))    #351
        , OptionalProperty('eventMessageTextsConfig', ArrayOf(CharacterString, 3))  #352
        , OptionalProperty('eventState', EventState)    #36
        , ReadableProperty('reliabilityEvaluationInhibit', Boolean) #357
        , OptionalProperty('propertyList', ArrayOf(PropertyIdentifier)) #371
        , OptionalProperty('tags', ArrayOf(NameValue))  #486
        , OptionalProperty('profileLocation', CharacterString)  #91
        , OptionalProperty('profileName', CharacterString)  #168
        ]
github JoelBender / bacpypes / sandbox / network_port_object.py View on Github external
, OptionalProperty('ipDNSServer', ArrayOf(OctetString)) #406
        , OptionalProperty('ipDHCPEnable', Boolean) #402
        , OptionalProperty('ipDHCPLeaseTime', Unsigned) #403
        , OptionalProperty('ipDHCPLeaseTimeRemaining', Unsigned)    #404
        , OptionalProperty('ipDHCPServer', OctetString) #405
        , OptionalProperty('ipNATTraversal', Boolean)   #410
        , OptionalProperty('ipGlobalAddress', HostNPort)    #407
        , OptionalProperty('broadcastDistributionTable', ListOf(BDTEntry))  #414
        , OptionalProperty('acceptFDRegistrations', Boolean)    #413
        , OptionalProperty('bbmdForeignDeviceTable', ListOf(FDTEntry))  #415
        , OptionalProperty('fdBBMDAddress', HostNPort)  #418
        , OptionalProperty('fdSubscriptionLifetime', Unsigned16)    #419
        , OptionalProperty('ipv6Mode', IPMode)  #435
        , OptionalProperty('ipv6Address', OctetString)  #436
        , OptionalProperty('ipv6PrefixLength', Unsigned8)   #437
        , OptionalProperty('ipv6UDPPort', Unsigned16)   #438
        , OptionalProperty('ipv6DefaultGateway', OctetString)   #439
        , OptionalProperty('ipv6MulticastAddress', OctetString) #440
        , OptionalProperty('ipv6DNSServer', OctetString)    #441
        , OptionalProperty('ipv6AutoAddressingEnabled', Boolean)    #442
        , OptionalProperty('ipv6DHCPLeaseTime', Unsigned)   #443
        , OptionalProperty('ipv6DHCPLeaseTimeRemaining', Unsigned)  #444
        , OptionalProperty('ipv6DHCPServer', OctetString)   #445
        , OptionalProperty('ipv6ZoneIndex', CharacterString)    #446
        , OptionalProperty('maxMasters', Unsigned8) # range 0-127   #64
        , OptionalProperty('maxInfoFrames', Unsigned8)  #63
        , OptionalProperty('slaveProxyEnable', Boolean) #172
        , OptionalProperty('manualSlaveAddressBinding', ListOf(AddressBinding)) #170
        , OptionalProperty('autoSlaveDiscovery', Boolean)   #169
        , OptionalProperty('slaveAddressBinding', ListOf(AddressBinding))   #171
        , OptionalProperty('virtualMACAddressTable', ListOf(VMACEntry)) #429
        , OptionalProperty('routingTable', ListOf(RouterEntry)) #428
github JoelBender / bacpypes / sandbox / network_port_object.py View on Github external
, OptionalProperty('ipv6DHCPLeaseTimeRemaining', Unsigned)  #444
        , OptionalProperty('ipv6DHCPServer', OctetString)   #445
        , OptionalProperty('ipv6ZoneIndex', CharacterString)    #446
        , OptionalProperty('maxMasters', Unsigned8) # range 0-127   #64
        , OptionalProperty('maxInfoFrames', Unsigned8)  #63
        , OptionalProperty('slaveProxyEnable', Boolean) #172
        , OptionalProperty('manualSlaveAddressBinding', ListOf(AddressBinding)) #170
        , OptionalProperty('autoSlaveDiscovery', Boolean)   #169
        , OptionalProperty('slaveAddressBinding', ListOf(AddressBinding))   #171
        , OptionalProperty('virtualMACAddressTable', ListOf(VMACEntry)) #429
        , OptionalProperty('routingTable', ListOf(RouterEntry)) #428
        , OptionalProperty('eventDetectionEnabled', Boolean)    #353
        , OptionalProperty('notificationClass', Unsigned)   #17
        , OptionalProperty('eventEnable', EventTransitionBits)  #35
        , OptionalProperty('ackedTransitions', EventTransitionBits) #0
        , OptionalProperty('notifyType', NotifyType)    #72
        , OptionalProperty('eventTimeStamps', ArrayOf(TimeStamp, 3))    #130
        , OptionalProperty('eventMessageTexts', ArrayOf(CharacterString, 3))    #351
        , OptionalProperty('eventMessageTextsConfig', ArrayOf(CharacterString, 3))  #352
        , OptionalProperty('eventState', EventState)    #36
        , ReadableProperty('reliabilityEvaluationInhibit', Boolean) #357
        , OptionalProperty('propertyList', ArrayOf(PropertyIdentifier)) #371
        , OptionalProperty('tags', ArrayOf(NameValue))  #486
        , OptionalProperty('profileLocation', CharacterString)  #91
        , OptionalProperty('profileName', CharacterString)  #168
        ]
github JoelBender / bacpypes / sandbox / network_port_object.py View on Github external
objectType = 'NetworkPort'  #56
    properties = \
        [ ReadableProperty('statusFlags', StatusFlags)  #111
        , ReadableProperty('reliability', Reliability)  #103
        , ReadableProperty('outOfService', Boolean) #81
        , ReadableProperty('networkType', NetworkType)  #427
        , ReadableProperty('protocolLevel', ProtocolLevel)  #482
        , OptionalProperty('referencePort', Unsigned)   #483
        , ReadableProperty('networkNumber', Unsigned16) #425
        , ReadableProperty('networkNumberQuality', NetworkNumberQuality)    #427
        , ReadableProperty('changesPending', Boolean)   #416
        , OptionalProperty('command', NetworkPortCommand)   #417
        , OptionalProperty('macAddress', OctetString)   #423
        , ReadableProperty('apduLength', Unsigned)  #388
        , ReadableProperty('linkSpeed', Real)   #420
        , OptionalProperty('linkSpeeds', ArrayOf(Real)) #421
        , OptionalProperty('eventTimeStamps', ArrayOf(TimeStamp))   #130
        , OptionalProperty('linkSpeedAutonegotiate', Boolean)   #422
        , OptionalProperty('networkInterfaceName', CharacterString) #424
        , OptionalProperty('ipMode', IPMode)    #408
        , OptionalProperty('ipAddress', OctetString) #400
        , OptionalProperty('ipUDPPort', Unsigned16) #412
        , OptionalProperty('ipSubnetMask', OctetString) #411
        , OptionalProperty('ipDefaultGateway', OctetString) #401
        , OptionalProperty('ipMulticastAddress', OctetString)   #409
        , OptionalProperty('ipDNSServer', ArrayOf(OctetString)) #406
        , OptionalProperty('ipDHCPEnable', Boolean) #402
        , OptionalProperty('ipDHCPLeaseTime', Unsigned) #403
        , OptionalProperty('ipDHCPLeaseTimeRemaining', Unsigned)    #404
        , OptionalProperty('ipDHCPServer', OctetString) #405
        , OptionalProperty('ipNATTraversal', Boolean)   #410
        , OptionalProperty('ipGlobalAddress', HostNPort)    #407
github JoelBender / bacpypes / sandbox / network_port_object.py View on Github external
, OptionalProperty('broadcastDistributionTable', ListOf(BDTEntry))  #414
        , OptionalProperty('acceptFDRegistrations', Boolean)    #413
        , OptionalProperty('bbmdForeignDeviceTable', ListOf(FDTEntry))  #415
        , OptionalProperty('fdBBMDAddress', HostNPort)  #418
        , OptionalProperty('fdSubscriptionLifetime', Unsigned16)    #419
        , OptionalProperty('ipv6Mode', IPMode)  #435
        , OptionalProperty('ipv6Address', OctetString)  #436
        , OptionalProperty('ipv6PrefixLength', Unsigned8)   #437
        , OptionalProperty('ipv6UDPPort', Unsigned16)   #438
        , OptionalProperty('ipv6DefaultGateway', OctetString)   #439
        , OptionalProperty('ipv6MulticastAddress', OctetString) #440
        , OptionalProperty('ipv6DNSServer', OctetString)    #441
        , OptionalProperty('ipv6AutoAddressingEnabled', Boolean)    #442
        , OptionalProperty('ipv6DHCPLeaseTime', Unsigned)   #443
        , OptionalProperty('ipv6DHCPLeaseTimeRemaining', Unsigned)  #444
        , OptionalProperty('ipv6DHCPServer', OctetString)   #445
        , OptionalProperty('ipv6ZoneIndex', CharacterString)    #446
        , OptionalProperty('maxMasters', Unsigned8) # range 0-127   #64
        , OptionalProperty('maxInfoFrames', Unsigned8)  #63
        , OptionalProperty('slaveProxyEnable', Boolean) #172
        , OptionalProperty('manualSlaveAddressBinding', ListOf(AddressBinding)) #170
        , OptionalProperty('autoSlaveDiscovery', Boolean)   #169
        , OptionalProperty('slaveAddressBinding', ListOf(AddressBinding))   #171
        , OptionalProperty('virtualMACAddressTable', ListOf(VMACEntry)) #429
        , OptionalProperty('routingTable', ListOf(RouterEntry)) #428
        , OptionalProperty('eventDetectionEnabled', Boolean)    #353
        , OptionalProperty('notificationClass', Unsigned)   #17
        , OptionalProperty('eventEnable', EventTransitionBits)  #35
        , OptionalProperty('ackedTransitions', EventTransitionBits) #0
        , OptionalProperty('notifyType', NotifyType)    #72
        , OptionalProperty('eventTimeStamps', ArrayOf(TimeStamp, 3))    #130
        , OptionalProperty('eventMessageTexts', ArrayOf(CharacterString, 3))    #351
github JoelBender / bacpypes / sandbox / network_port_object.py View on Github external
, OptionalProperty('linkSpeedAutonegotiate', Boolean)   #422
        , OptionalProperty('networkInterfaceName', CharacterString) #424
        , OptionalProperty('ipMode', IPMode)    #408
        , OptionalProperty('ipAddress', OctetString) #400
        , OptionalProperty('ipUDPPort', Unsigned16) #412
        , OptionalProperty('ipSubnetMask', OctetString) #411
        , OptionalProperty('ipDefaultGateway', OctetString) #401
        , OptionalProperty('ipMulticastAddress', OctetString)   #409
        , OptionalProperty('ipDNSServer', ArrayOf(OctetString)) #406
        , OptionalProperty('ipDHCPEnable', Boolean) #402
        , OptionalProperty('ipDHCPLeaseTime', Unsigned) #403
        , OptionalProperty('ipDHCPLeaseTimeRemaining', Unsigned)    #404
        , OptionalProperty('ipDHCPServer', OctetString) #405
        , OptionalProperty('ipNATTraversal', Boolean)   #410
        , OptionalProperty('ipGlobalAddress', HostNPort)    #407
        , OptionalProperty('broadcastDistributionTable', ListOf(BDTEntry))  #414
        , OptionalProperty('acceptFDRegistrations', Boolean)    #413
        , OptionalProperty('bbmdForeignDeviceTable', ListOf(FDTEntry))  #415
        , OptionalProperty('fdBBMDAddress', HostNPort)  #418
        , OptionalProperty('fdSubscriptionLifetime', Unsigned16)    #419
        , OptionalProperty('ipv6Mode', IPMode)  #435
        , OptionalProperty('ipv6Address', OctetString)  #436
        , OptionalProperty('ipv6PrefixLength', Unsigned8)   #437
        , OptionalProperty('ipv6UDPPort', Unsigned16)   #438
        , OptionalProperty('ipv6DefaultGateway', OctetString)   #439
        , OptionalProperty('ipv6MulticastAddress', OctetString) #440
        , OptionalProperty('ipv6DNSServer', OctetString)    #441
        , OptionalProperty('ipv6AutoAddressingEnabled', Boolean)    #442
        , OptionalProperty('ipv6DHCPLeaseTime', Unsigned)   #443
        , OptionalProperty('ipv6DHCPLeaseTimeRemaining', Unsigned)  #444
        , OptionalProperty('ipv6DHCPServer', OctetString)   #445
        , OptionalProperty('ipv6ZoneIndex', CharacterString)    #446