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

View Source

Error APDUs are used to the information contained in a service response primitive that indicates the reason why a previous confirmed service request failed, either in its entirety or only partially.

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

This module implements the BACnet.Stack.EncoderProtocol.

Summary

Types

t()

Represents the Application Data Unit (APDU) Error.

Functions

Encodes the Error APDU into binary data.

Types

t()

Represents the Application Data Unit (APDU) Error.

To allow forward compatibility, some fields are allowed to be an integer.

Functions

encode(apdu)

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

Encodes the Error APDU into binary data.