#include <nng/nng.h>
struct mqtt_buf_t {
uint32_t length;
uint8_t *buf;
};
typedef struct mqtt_buf_t nng_mqtt_topic;
nng_mqtt_topic *nng_mqtt_msg_get_unsubscribe_topics(nng_msg *msg, uint32_t *topics_count);
The nng_mqtt_msg_get_unsubscribe_topics()
function is used to get mqtt subscribe array with topic after finishing nng_mqtt_msg_decode();
nng_mqtt_msg_alloc(3), nng_mqtt_msg_decode(3), nng_mqtt_msg_encode(3), nng_mqtt_msg_set_unsubscribe(3), nng_msg_free(3), nng_msg_body(3), nng_msg_dup(3), nng_msg_header(3), nng_msg_header_len(3), nng_msg_len(3), nng_msg_capacity(3), nng_msg_reserve(3), nng_msg_realloc(3), nng_strerror(3), nng_msg(5), nng(7)