MQTTc_MsgClr

Clear Message object members.

Files

mqtt-c.h/mqtt-c.c

Prototype

void  MQTTc_MsgClr (MQTTc_MSG  *p_msg,
                    MQTTc_ERR  *p_err);

Arguments

p_msg

Pointer to message object to clear.

p_err

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

MQTTc_ERR_NONE

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_MSG object is used for the first time.