BACnet.Protocol.LogMultipleRecord (bacstack v0.0.1)

View Source

Summary

Types

Representative type for log data - possible values it can take.

t()

Functions

Encode a BACnet log multiple record into application tag-encoded.

Parse a BACnet log multiple record from application tags encoding.

Validates whether the given log multiple record is in form valid.

Types

log_data()

Representative type for log data - possible values it can take.

t()

@type t() :: %BACnet.Protocol.LogMultipleRecord{
  log_data:
    [log_data()] | BACnet.Protocol.LogStatus.t() | {:time_change, float()},
  timestamp: BACnet.Protocol.BACnetDateTime.t()
}

Functions

encode(record, opts \\ [])

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

Encode a BACnet log multiple record into application tag-encoded.

parse(tags)

Parse a BACnet log multiple record from application tags encoding.

valid?(t)

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

Validates whether the given log multiple record is in form valid.

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