Skip to content

Latest commit

 

History

History
54 lines (42 loc) · 1.53 KB

nng_mqtt_msg_encode.3.adoc

File metadata and controls

54 lines (42 loc) · 1.53 KB

nng_mqtt_msg_encode(3)

NAME

nng_mqtt_msg_encode - encode a mqtt message from proto_data to nng_msg_body and nng_msg_header

SYNOPSIS

#include <nng/nng.h>

int nng_mqtt_msg_encode(nng_msg **msgp);

DESCRIPTION

The nng_mqtt_msg_encode() function encodes a mqtt message to body and header.

RETURN VALUES

This function returns 0 on success, and non-zero otherwise.

ERRORS