BACnet.Protocol.ActionCommand (bacstack v0.0.1)
View SourceSummary
Functions
Encode a BACnet action command into application tag-encoded.
Parse a BACnet action command from application tags encoding.
Validates whether the given action command is in form valid.
Types
@type t() :: %BACnet.Protocol.ActionCommand{ device_identifier: BACnet.Protocol.ObjectIdentifier.t() | nil, object_identifier: BACnet.Protocol.ObjectIdentifier.t(), post_delay: non_neg_integer() | nil, priority: 1..16 | nil, property_array_index: non_neg_integer() | nil, property_identifier: BACnet.Protocol.Constants.property_identifier() | non_neg_integer(), property_value: BACnet.Protocol.ApplicationTags.Encoding.t(), quit_on_failure: boolean(), write_successful: boolean() }
Functions
@spec encode(t(), Keyword.t()) :: {:ok, BACnet.Protocol.ApplicationTags.encoding_list()} | {:error, term()}
Encode a BACnet action command into application tag-encoded.
@spec parse(BACnet.Protocol.ApplicationTags.encoding_list()) :: {:ok, {t(), rest :: BACnet.Protocol.ApplicationTags.encoding_list()}} | {:error, term()}
Parse a BACnet action command from application tags encoding.
Validates whether the given action command is in form valid.
It only validates the struct is valid as per type specification.