#include <nng/nng.h>
bool nng_mqtt_msg_get_connect_clean_session(nng_msg *msgp);
bool nng_mqtt_msg_get_connect_will_retain(nng_msg *msgp);
uint8_t nng_mqtt_msg_get_connect_proto_version(nng_msg *msgp);
uint16_t nng_mqtt_msg_get_connect_keep_alive(nng_msg *msgp);
const char * nng_mqtt_msg_get_connect_client_id(nng_msg *msgp);
const char * nng_mqtt_msg_get_connect_will_topic(nng_msg *msgp);
const char * nng_mqtt_msg_get_connect_will_msg(nng_msg *msgp);
const char * nng_mqtt_msg_get_connect_user_name(nng_msg *msgp);
const char * nng_mqtt_msg_get_connect_password(nng_msg *msgp);
The nng_mqtt_msg_get_connect_xxx()
function is used to get mqtt connect message options after finishing nng_mqtt_msg_decode():
proto_version,
keep_alive,
client_id,
will_topic,
will_msg,
will_retain,
user_name,
password,
clean_session;
nng_mqtt_msg_alloc(3), nng_mqtt_msg_decode(3), nng_mqtt_msg_encode(3), nng_mqtt_msg_set_connect(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)