BACnet.Protocol.Destination (bacstack v0.0.1)

View Source

Summary

Types

t()

Represents a BACnet destination.

Functions

Encodes a BACnet destination into BACnet application tags encoding.

Parses a BACnet destination from BACnet application tags encoding.

Validates whether the given BACnet destination is in form valid.

Types

t()

@type t() :: %BACnet.Protocol.Destination{
  from_time: BACnet.Protocol.BACnetTime.t(),
  issue_confirmed_notifications: boolean(),
  process_identifier: BACnet.Protocol.ApplicationTags.unsigned32(),
  recipient: BACnet.Protocol.Recipient.t(),
  to_time: BACnet.Protocol.BACnetTime.t(),
  transitions: BACnet.Protocol.EventTransitionBits.t(),
  valid_days: BACnet.Protocol.DaysOfWeek.t()
}

Represents a BACnet destination.

Functions

encode(destination, opts \\ [])

@spec encode(t(), Keyword.t()) ::
  {:ok, BACnet.Protocol.ApplicationTags.encoding_list()} | {:error, term()}

Encodes a BACnet destination into BACnet application tags encoding.

parse(tags)

Parses a BACnet destination from BACnet application tags encoding.

valid?(t)

@spec valid?(t()) :: boolean()

Validates whether the given BACnet destination is in form valid.

It only validates the struct is valid as per type specification.