BACnet.Protocol.EventMessageTexts (bacstack v0.0.1)

View Source

Summary

Functions

Encodes a BACnet event message texts (BACnetArray[3] of CharacterString) into BACnet application tags encoding.

Parses a BACnet event message texts (BACnetArray[3] of CharacterString) from BACnet application tags encoding.

Validates whether the given event message texts is in form valid.

Types

t()

@type t() :: %BACnet.Protocol.EventMessageTexts{
  to_fault: String.t(),
  to_normal: String.t(),
  to_offnormal: String.t()
}

Functions

encode(texts, opts \\ [])

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

Encodes a BACnet event message texts (BACnetArray[3] of CharacterString) into BACnet application tags encoding.

parse(tags)

Parses a BACnet event message texts (BACnetArray[3] of CharacterString) from BACnet application tags encoding.

valid?(t)

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

Validates whether the given event message texts is in form valid.

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