Control Query


The positive (ACK) and negative (NACK) control queries let the client know whether a requested action was successful or not. In case of failure, NACKs also provide context on what went wrong or where the error occurred.

These queries follow the standard protocol structure, using _ACK and NACK as their 4-byte function codes. They include a single byte c as the error code (for positive control queries, c will take always the value uint8_t c=255).

!s-_ACK-c-e!
!s-NACK-c-e!

As such, the communication schema in which these queries will be used will look like the one illustrated on the following diagram.

Control query comm schema Control query comm schema
Diagram for a positive and negative control query