BACnet.Protocol.DeviceObjectRef (bacstack v0.0.1)
View SourceSummary
Functions
Encodes a BACnet device object reference into application tags encoding.
Parses a BACnet device object reference into a struct.
Validates whether the given device object reference is in form valid.
Types
@type t() :: %BACnet.Protocol.DeviceObjectRef{ device_identifier: BACnet.Protocol.ObjectIdentifier.t() | nil, object_identifier: BACnet.Protocol.ObjectIdentifier.t() }
Functions
@spec encode(t(), Keyword.t()) :: {:ok, BACnet.Protocol.ApplicationTags.encoding_list()} | {:error, term()}
Encodes a BACnet device object reference into application tags encoding.
@spec parse(BACnet.Protocol.ApplicationTags.encoding_list()) :: {:ok, {t(), rest :: BACnet.Protocol.ApplicationTags.encoding_list()}} | {:error, term()}
Parses a BACnet device object reference into a struct.
Validates whether the given device object reference is in form valid.
It only validates the struct is valid as per type specification.