MQTTc_ConnClose

Close a MQTTc Connection.

Files

mqtt-c.h/mqtt-c.c

Prototype

void  MQTTc_ConnClose (MQTTc_CONN   *p_conn,
                       MQTTc_FLAGS   flags,
                       MQTTc_ERR    *p_err);

Arguments

p_conn

Pointer to MQTTc Connection to close.

flags

Configuration flags, reserved for future usage.

p_err

Pointer to variable that will receive the return error code from this function:

MQTTc_ERR_NONE

MQTTc_ERR_NULL_PTR

MQTTc_ERR_INVALID_ARG

Returned Values

None.

Required Configuration

None.

Notes / Warnings

  • This function MUST be called after the µC/MQTT-client Suite Initialization has been completed.