MQTT-C
Data Fields | Related Functions
mqtt_response_unsuback Struct Reference

The brokers response to a UNSUBSCRIBE request. More...

#include <mqtt.h>

Data Fields

uint16_t packet_id
 The published messages packet ID.
 

Related Functions

(Note that these are not member functions.)

ssize_t mqtt_unpack_unsuback_response (struct mqtt_response *mqtt_response, const uint8_t *buf)
 Deserialize an UNSUBACK packet from buf. More...
 

Detailed Description

The brokers response to a UNSUBSCRIBE request.

See also
MQTT v3.1.1: UNSUBACK - Unsubscribe Acknowledgement.

Friends And Related Function Documentation

◆ mqtt_unpack_unsuback_response()

ssize_t mqtt_unpack_unsuback_response ( struct mqtt_response mqtt_response,
const uint8_t *  buf 
)
related

Deserialize an UNSUBACK packet from buf.

Precondition
mqtt_unpack_fixed_header must have returned a positive value and the mqtt_response must have a control type of MQTT_CONTROL_UNSUBACK.
Parameters
[out]mqtt_responsethe response that is initialized from the contents of buf.
[in]bufthe buffer with the incoming data.
Returns
The number of bytes that were consumed, or 0 if the buffer does not contain enough bytes to parse the packet, or a negative value if there was a protocol violation.

The documentation for this struct was generated from the following file: