AWS IoT Device SDK C:
MQTT
MQTT 3.1.1 client library
|
Return to main page ↑ |
Unsubscribes from the given array of topic filters and optionally receive an asynchronous notification when the unsubscribe completes.
This function sends an MQTT UNSUBSCRIBE packet to the server. An UNSUBSCRIBE packet removes registered topic filters from the server. After unsubscribing, the server will no longer send messages on these topic filters to the client.
Corresponding subscription callback functions are also removed from the MQTT connection. These subscription callback functions will be removed even if the MQTT UNSUBSCRIBE packet fails to send.
[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. |
[in] | pCallbackInfo | Asynchronous notification of this function's completion (NULL to disable). |
[out] | pUnsubscribeOperation | Set to a handle by which this operation may be referenced after this function returns. This reference is invalidated once the unsubscribe operation completes. |