The Atomic Write File Acknowledgment is the response to a successful Atomic Write File service request.
It returns the file position (in octets for stream access, or record count for record access) at which the next write should begin if the client wishes to continue writing the file in subsequent requests. This allows clients to reliably resume or append to files even after partial writes.
Summary
Functions
Converts a received BACnet.Protocol.APDU.ComplexACK APDU into a struct.
Constructs a BACnet.Protocol.APDU.ComplexACK APDU from a
BACnet.Protocol.Services.Ack.AtomicWriteFileAck struct.
Types
Functions
@spec from_apdu(BACnet.Protocol.APDU.ComplexACK.t()) :: {:ok, t()} | {:error, term()}
Converts a received BACnet.Protocol.APDU.ComplexACK APDU into a struct.
@spec to_apdu(t(), 0..255) :: {:ok, BACnet.Protocol.APDU.ComplexACK.t()} | {:error, term()}
Constructs a BACnet.Protocol.APDU.ComplexACK APDU from a
BACnet.Protocol.Services.Ack.AtomicWriteFileAck struct.