BACnet.Protocol.ObjectPropertyRef (bacstack v0.0.1)

View Source

Summary

Functions

Encodes a BACnet object property reference into application tags encoding.

Parses a BACnet object property reference into a struct.

Validates whether the given object property reference is in form valid.

Types

t()

@type t() :: %BACnet.Protocol.ObjectPropertyRef{
  object_identifier: BACnet.Protocol.ObjectIdentifier.t(),
  property_array_index: non_neg_integer() | nil,
  property_identifier:
    BACnet.Protocol.Constants.property_identifier() | non_neg_integer()
}

Functions

encode(ref, opts \\ [])

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

Encodes a BACnet object property reference into application tags encoding.

parse(tags)

Parses a BACnet object property reference into a struct.

valid?(t)

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

Validates whether the given object property reference is in form valid.

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