AWS IoT Device SDK C: Shadow
AWS IoT Device Shadow library
Return to main page ↑
AwsIotShadow_DeleteSync

Delete a Thing Shadow with a timeout.

const char * pThingName,
size_t thingNameLength,
uint32_t flags,
uint32_t timeoutMs );

This function queues a Shadow delete, then waits for the result. Internally, this function is a call to AwsIotShadow_DeleteAsync followed by AwsIotShadow_Wait. See AwsIotShadow_DeleteAsync for more information on the Shadow delete operation.

Parameters
[in]mqttConnectionThe MQTT connection to use for Shadow delete.
[in]pThingNameThe Thing Name associated with the Shadow to delete.
[in]thingNameLengthThe length of pThingName.
[in]flagsFlags which modify the behavior of this function. See Shadow Function Flags.
[in]timeoutMsIf the Shadow service does not respond to the Shadow delete within this timeout, this function returns AWS_IOT_SHADOW_TIMEOUT.
Returns
One of the following: