class

BACnet::DiscoveryStore::Device

Inherits JSON::Serializable < Reference < Object

Represents a discovered BACnet device Supports both BACnet/SC (using VMAC) and BACnet/IP (using IP address)

Constructors

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)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

address
Source
address=(address : String | Nil)
Source
description
Source
description=(description : String)
Source
device_instance
Source
device_instance=(device_instance : UInt32)
Source
ip_address
Source
ip_address=(ip_address : String | Nil)
Source
max_apdu_length
Source
max_apdu_length=(max_apdu_length : UInt64 | Nil)
Source
model_name
Source
model_name=(model_name : String)
Source
network
Source
network=(network : UInt16 | Nil)
Source
network_id

Returns the network identifier for this device For BACnet/SC this is the VMAC, for BACnet/IP this is the IP address

Source
object_name

Standard BACnet device properties

Source
object_name=(object_name : String)

Standard BACnet device properties

Source
objects

Objects exposed by this device

Source
objects=(objects : Array(ObjectReference))

Objects exposed by this device

Source
parent?

Check if this device is a parent (has sub-devices)

Source
parent_device_instance
Source
parent_device_instance=(parent_device_instance : UInt32 | Nil)
Source
segmentation_supported
Source
segmentation_supported=(segmentation_supported : String | Nil)
Source
sub_device?

Check if this device is a sub-device

Source
sub_devices

Sub-devices (for gateway devices)

Source
sub_devices=(sub_devices : Array(Device))

Sub-devices (for gateway devices)

Source
vendor_id
Source
vendor_id=(vendor_id : UInt64 | Nil)
Source
vendor_name
Source
vendor_name=(vendor_name : String)
Source
vmac
Source
vmac=(vmac : String | Nil)
Source
vmac_bytes
Source
vmac_hex

BACnet/SC specific methods (VMAC)

Source