class BACnet::DiscoveryStore::Device

Overview

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

Included Modules

Defined in:

bacnet/discovery_store.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
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) #

[View source]

Instance Method Detail

def address : String | Nil #

[View source]
def address=(address : String | Nil) #

[View source]
def description : String #

[View source]
def description=(description : String) #

[View source]
def device_instance : UInt32 #

[View source]
def device_instance=(device_instance : UInt32) #

[View source]
def ip_address : String | Nil #

[View source]
def ip_address=(ip_address : String | Nil) #

[View source]
def max_apdu_length : UInt64 | Nil #

[View source]
def max_apdu_length=(max_apdu_length : UInt64 | Nil) #

[View source]
def model_name : String #

[View source]
def model_name=(model_name : String) #

[View source]
def network : UInt16 | Nil #

[View source]
def network=(network : UInt16 | Nil) #

[View source]
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


[View source]
def object_name : String #

Standard BACnet device properties


[View source]
def object_name=(object_name : String) #

Standard BACnet device properties


[View source]
def objects : Array(ObjectReference) #

Objects exposed by this device


[View source]
def objects=(objects : Array(ObjectReference)) #

Objects exposed by this device


[View source]
def parent? : Bool #

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


[View source]
def parent_device_instance : UInt32 | Nil #

[View source]
def parent_device_instance=(parent_device_instance : UInt32 | Nil) #

[View source]
def segmentation_supported : String | Nil #

[View source]
def segmentation_supported=(segmentation_supported : String | Nil) #

[View source]
def sub_device? : Bool #

Check if this device is a sub-device


[View source]
def sub_devices : Array(Device) #

Sub-devices (for gateway devices)


[View source]
def sub_devices=(sub_devices : Array(Device)) #

Sub-devices (for gateway devices)


[View source]
def vendor_id : UInt64 | Nil #

[View source]
def vendor_id=(vendor_id : UInt64 | Nil) #

[View source]
def vendor_name : String #

[View source]
def vendor_name=(vendor_name : String) #

[View source]
def vmac : String | Nil #

[View source]
def vmac=(vmac : String | Nil) #

[View source]
def vmac_bytes : Bytes | Nil #

[View source]
def vmac_hex : String | Nil #

BACnet/SC specific methods (VMAC)


[View source]