Add a command to call MQTT_Publish() for an MQTT connection.
[in] | pMqttAgentContext | The MQTT agent to use. |
[in] | pPublishInfo | MQTT PUBLISH information. |
[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