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

Send a Thing Shadow update with a timeout.

const AwsIotShadowDocumentInfo_t * pUpdateInfo,
uint32_t flags,
uint32_t timeoutMs );

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

Parameters
[in]mqttConnectionThe MQTT connection to use for Shadow update.
[in]pUpdateInfoShadow document parameters.
[in]flagsFlags which modify the behavior of this function. See Shadow Function Flags.
[in]timeoutMsIf the Shadow service does not respond to the Shadow update within this timeout, this function returns AWS_IOT_SHADOW_TIMEOUT.
Returns
One of the following: