Skip to content

Latest commit

 

History

History
64 lines (47 loc) · 1.7 KB

nng_mqtt_msg_get_unsubscribe.3.adoc

File metadata and controls

64 lines (47 loc) · 1.7 KB

nng_mqtt_msg_get_unsubscribe(3)

NAME

nng_mqtt_msg_get_unsubscribe - get mqtt subscribe message

SYNOPSIS

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

DESCRIPTION

The nng_mqtt_msg_get_unsubscribe_topics() function is used to get mqtt subscribe array with topic after finishing nng_mqtt_msg_decode();

RETURN VALUES

None.

ERRORS

None.