BACnet.Protocol.APDU.SimpleACK (bacstack v0.0.1)

View Source

Simple ACK APDUs are used to convey the information contained in a positive service response primitive that contains no other information except that the service request was successfully carried out.

This module has functions for encoding Simple ACK APDUs. Decoding is handled by BACnet.Protocol.APDU.

This module implements the BACnet.Stack.EncoderProtocol.

Summary

Types

t()

Represents the Application Data Unit (APDU) Simple ACK.

Functions

Encodes the Simple ACK APDU into binary data.

Types

t()

@type t() :: %BACnet.Protocol.APDU.SimpleACK{
  invoke_id: 0..255,
  service:
    BACnet.Protocol.Constants.confirmed_service_choice() | non_neg_integer()
}

Represents the Application Data Unit (APDU) Simple ACK.

To allow forward compatibility, service is allowed to be an integer.

Functions

encode(apdu)

@spec encode(t()) :: {:ok, iodata()} | {:error, Exception.t()}

Encodes the Simple ACK APDU into binary data.