MQTTc_ConnClr

Clear an MQTTc Connection before the first usage.

Files

mqtt-c.h/mqtt-c.c

Prototype

void  MQTTc_ConnClr (MQTTc_CONN  *p_conn,
                     MQTTc_ERR   *p_err);

Arguments

p_conn

Pointer to the MQTTc Connection.

p_err

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

MQTTc_ERR_NONE

MQTTc_ERR_NOT_INIT

MQTTc_ERR_NULL_PTR

Returned Values

None.

Required Configuration

None.

Notes / Warnings

  • This function MUST be called after the µC/MQTT-client Suite Initialization has been completed.
  • This function MUST be called before the MQTTc_CONN object is used for the first time.