AWS IoT Device SDK C:
Shadow
AWS IoT Device Shadow library
|
Return to main page ↑ |
Delete a Thing Shadow and receive an asynchronous notification when the Delete completes.
This function deletes any existing Shadow document for the given Thing Name. If the given Thing has no Shadow and this function is called, the result will be AWS_IOT_SHADOW_NOT_FOUND.
Deleting a Shadow involves sending an MQTT message to AWS IoT and waiting on a response. This message will always be sent at MQTT QoS 0.
[in] | mqttConnection | The MQTT connection to use for Shadow delete. |
[in] | pThingName | The Thing Name associated with the Shadow to delete. |
[in] | thingNameLength | The length of pThingName . |
[in] | flags | Flags which modify the behavior of this function. See Shadow Function Flags. |
[in] | pCallbackInfo | Asynchronous notification of this function's completion. |
[out] | pDeleteOperation | Set to a handle by which this operation may be referenced after this function returns. This reference is invalidated once the Shadow delete completes. |
Example