AWS IoT Device SDK C:
MQTT
MQTT 3.1.1 client library
|
Return to main page ↑ |
Publish a message to the given topic name with a timeout.
This function sends an MQTT PUBLISH packet to the server, then waits for a server response to the packet. Internally, this function is a call to IotMqtt_PublishAsync followed by IotMqtt_Wait. See IotMqtt_PublishAsync for more information about the MQTT PUBLISH operation.
[in] | mqttConnection | The MQTT connection to use for the publish. |
[in] | pPublishInfo | MQTT publish parameters. |
[in] | flags | Flags which modify the behavior of this function. See MQTT Function Flags. Currently, flags are ignored by this function; this parameter is for future-compatibility. |
[in] | timeoutMs | If the MQTT server does not acknowledge a QoS 1 PUBLISH within this timeout in milliseconds, this function returns IOT_MQTT_TIMEOUT. This parameter is ignored for QoS 0 PUBLISH messages. |