#include <nng/nng.h>
typedef struct mqtt_topic_qos_t {
nng_mqtt_topic topic;
uint8_t qos;
} mqtt_topic_qos;
typedef struct mqtt_topic_qos_t nng_mqtt_topic_qos;
nng_mqtt_topic_qos *nng_mqtt_msg_get_subscribe_topics(nng_msg *msg, uint32_t *topics_count);
The nng_mqtt_msg_get_subscribe_topics()
function is used to get mqtt subscribe array with topic and qos 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_subscribe(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)