Add a command to call MQTT_Connect() for an MQTT connection. If a session is resumed with the broker, it will also resend the necessary QoS1/2 publishes.
[in] | pMqttAgentContext | The MQTT agent to use. |
[in,out] | pConnectArgs | Struct holding args for MQTT_Connect(). On a successful connection after the command is processed, the sessionPresent member will be filled to indicate whether the broker resumed an existing session. |
[in] | pCommandInfo | The information pertaining to the command, including:
|
pCommandInfo
parameter MUST remain in scope at least until the callback has been executed by the agent task.Example