MQTT-C
|
A struct used to deserialize/interpret an incoming packet from the broker. More...
#include <mqtt.h>
Data Fields | |
struct mqtt_fixed_header | fixed_header |
The mqtt_fixed_header of the deserialized packet. | |
union { | |
struct mqtt_response_connack connack | |
struct mqtt_response_publish publish | |
struct mqtt_response_puback puback | |
struct mqtt_response_pubrec pubrec | |
struct mqtt_response_pubrel pubrel | |
struct mqtt_response_pubcomp pubcomp | |
struct mqtt_response_suback suback | |
struct mqtt_response_unsuback unsuback | |
struct mqtt_response_pingresp pingresp | |
} | decoded |
A union of the possible responses from the broker. More... | |
Related Functions | |
(Note that these are not member functions.) | |
ssize_t | mqtt_unpack_response (struct mqtt_response *response, const uint8_t *buf, size_t bufsz) |
Deserialize a packet from the broker. More... | |
A struct used to deserialize/interpret an incoming packet from the broker.
union { ... } mqtt_response::decoded |
A union of the possible responses from the broker.
MQTT_CONTROL_PUBLISH
then decoded::publish should be accessed.