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