AWS IoT Device SDK C:
MQTT
MQTT 3.1.1 client library
|
Return to main page ↑ |
Unsubscribes from a given array of topic filters with a timeout.
This function sends an MQTT UNSUBSCRIBE packet to the server, then waits for a server response to the packet. Internally, this function is a call to IotMqtt_UnsubscribeAsync followed by IotMqtt_Wait. See IotMqtt_UnsubscribeAsync for more information about the MQTT UNSUBSCRIBE operation.
[in] | mqttConnection | The MQTT connection used for the subscription. |
[in] | pSubscriptionList | Pointer to the first element in the array of subscriptions. |
[in] | subscriptionCount | The number of elements in pSubscriptionList. |
[in] | flags | Flags which modify the behavior of this function. See MQTT Function Flags. Flags are currently ignored but reserved for future use. |
[in] | timeoutMs | If the MQTT server does not acknowledge the UNSUBSCRIBE within this timeout in milliseconds, this function returns IOT_MQTT_TIMEOUT. |