MQTTc_ConnOpen

Open a new MQTT Client connection.

Files

mqtt-c.h/mqtt-c.c

Prototype

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

Arguments

p_conn

Pointer to MQTTc Connection object to open.

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

Returned Values

None.

Required Configuration

None.

Notes / Warnings

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