Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 1.75 KB

nng_mqtt_msg_get_subscribe.3.adoc

File metadata and controls

64 lines (47 loc) · 1.75 KB

nng_mqtt_msg_get_subscribe(3)

NAME

nng_mqtt_msg_get_subscribe - get mqtt subscribe message

SYNOPSIS

#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);

DESCRIPTION

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();

RETURN VALUES

None.

ERRORS

None.