class
BACnet::DiscoveryStore::Device
- BACnet::DiscoveryStore::Device
- Reference
- Object
Overview
Represents a discovered BACnet device Supports both BACnet/SC (using VMAC) and BACnet/IP (using IP address)
Included Modules
- JSON::Serializable
Defined in:
bacnet/discovery_store.crConstructors
- .new(pull : JSON::PullParser)
- .new(device_instance : UInt32, vmac : String | Nil = nil, ip_address : String | Nil = nil, max_apdu_length : UInt64 | Nil = nil, segmentation_supported : String | Nil = nil, vendor_id : UInt64 | Nil = nil, network : UInt16 | Nil = nil, address : String | Nil = nil, parent_device_instance : UInt32 | Nil = nil)
Instance Method Summary
- #address : String | Nil
- #address=(address : String | Nil)
- #description : String
- #description=(description : String)
- #device_instance : UInt32
- #device_instance=(device_instance : UInt32)
- #ip_address : String | Nil
- #ip_address=(ip_address : String | Nil)
- #max_apdu_length : UInt64 | Nil
- #max_apdu_length=(max_apdu_length : UInt64 | Nil)
- #model_name : String
- #model_name=(model_name : String)
- #network : UInt16 | Nil
- #network=(network : UInt16 | Nil)
-
#network_id : String
Returns the network identifier for this device For BACnet/SC this is the VMAC, for BACnet/IP this is the IP address
-
#object_name : String
Standard BACnet device properties
-
#object_name=(object_name : String)
Standard BACnet device properties
-
#objects : Array(ObjectReference)
Objects exposed by this device
-
#objects=(objects : Array(ObjectReference))
Objects exposed by this device
-
#parent? : Bool
Check if this device is a parent (has sub-devices)
- #parent_device_instance : UInt32 | Nil
- #parent_device_instance=(parent_device_instance : UInt32 | Nil)
- #segmentation_supported : String | Nil
- #segmentation_supported=(segmentation_supported : String | Nil)
-
#sub_device? : Bool
Check if this device is a sub-device
-
#sub_devices : Array(Device)
Sub-devices (for gateway devices)
-
#sub_devices=(sub_devices : Array(Device))
Sub-devices (for gateway devices)
- #vendor_id : UInt64 | Nil
- #vendor_id=(vendor_id : UInt64 | Nil)
- #vendor_name : String
- #vendor_name=(vendor_name : String)
- #vmac : String | Nil
- #vmac=(vmac : String | Nil)
- #vmac_bytes : Bytes | Nil
-
#vmac_hex : String | Nil
BACnet/SC specific methods (VMAC)
Constructor Detail
def self.new(device_instance : UInt32, vmac : String | Nil = nil, ip_address : String | Nil = nil, max_apdu_length : UInt64 | Nil = nil, segmentation_supported : String | Nil = nil, vendor_id : UInt64 | Nil = nil, network : UInt16 | Nil = nil, address : String | Nil = nil, parent_device_instance : UInt32 | Nil = nil)
#
Instance Method Detail
def network_id : String
#
Returns the network identifier for this device For BACnet/SC this is the VMAC, for BACnet/IP this is the IP address