28 #ifndef AWS_IOT_SHADOW_H_ 29 #define AWS_IOT_SHADOW_H_ 32 #include "iot_config.h" 178 const char * pThingName,
179 size_t thingNameLength,
212 const char * pThingName,
213 size_t thingNameLength,
215 uint32_t timeoutMs );
344 const char **
const pShadowDocument,
345 size_t *
const pShadowDocumentLength );
473 uint32_t timeoutMs );
594 const char **
const pShadowDocument,
595 size_t *
const pShadowDocumentLength );
718 const char * pThingName,
719 size_t thingNameLength,
828 const char * pThingName,
829 size_t thingNameLength,
868 const char * pThingName,
869 size_t thingNameLength,
901 #define AwsIotShadow_Delete AwsIotShadow_DeleteAsync 902 #define AwsIotShadow_TimedDelete AwsIotShadow_DeleteSync 903 #define AwsIotShadow_Get AwsIotShadow_GetAsync 904 #define AwsIotShadow_TimedGet AwsIotShadow_GetSync 905 #define AwsIotShadow_Update AwsIotShadow_UpdateAsync 906 #define AwsIotShadow_TimedUpdate AwsIotShadow_UpdateSync AwsIotShadowError_t AwsIotShadow_GetAsync(IotMqttConnection_t mqttConnection, const AwsIotShadowDocumentInfo_t *pGetInfo, uint32_t flags, const AwsIotShadowCallbackInfo_t *pCallbackInfo, AwsIotShadowOperation_t *const pGetOperation)
Retrieve a Thing Shadow and receive an asynchronous notification when the Shadow document is received...
Definition: aws_iot_shadow_api.c:840
AwsIotShadowError_t AwsIotShadow_GetSync(IotMqttConnection_t mqttConnection, const AwsIotShadowDocumentInfo_t *pGetInfo, uint32_t flags, uint32_t timeoutMs, const char **const pShadowDocument, size_t *const pShadowDocumentLength)
Retrieve a Thing Shadow with a timeout.
Definition: aws_iot_shadow_api.c:921
AwsIotShadowError_t AwsIotShadow_Init(uint32_t mqttTimeoutMs)
One-time initialization function for the Shadow library.
Definition: aws_iot_shadow_api.c:656
AwsIotShadowError_t
Return codes of Shadow functions.
Definition: aws_iot_shadow_types.h:88
AwsIotShadowError_t AwsIotShadow_UpdateAsync(IotMqttConnection_t mqttConnection, const AwsIotShadowDocumentInfo_t *pUpdateInfo, uint32_t flags, const AwsIotShadowCallbackInfo_t *pCallbackInfo, AwsIotShadowOperation_t *const pUpdateOperation)
Send a Thing Shadow update and receive an asynchronous notification when the Shadow Update completes...
Definition: aws_iot_shadow_api.c:958
struct _mqttConnection * IotMqttConnection_t
Information on a user-provided Shadow callback function.
Definition: aws_iot_shadow_types.h:436
const char * AwsIotShadow_strerror(AwsIotShadowError_t status)
Returns a string that describes an AwsIotShadowError_t.
Definition: aws_iot_shadow_api.c:1217
AwsIotShadowError_t AwsIotShadow_DeleteSync(IotMqttConnection_t mqttConnection, const char *pThingName, size_t thingNameLength, uint32_t flags, uint32_t timeoutMs)
Delete a Thing Shadow with a timeout.
Definition: aws_iot_shadow_api.c:806
AwsIotShadowError_t AwsIotShadow_SetUpdatedCallback(IotMqttConnection_t mqttConnection, const char *pThingName, size_t thingNameLength, uint32_t flags, const AwsIotShadowCallbackInfo_t *pUpdatedCallback)
Set a callback to be invoked when a Thing Shadow changes.
Definition: aws_iot_shadow_api.c:1199
AwsIotShadowError_t AwsIotShadow_RemovePersistentSubscriptions(IotMqttConnection_t mqttConnection, const char *pThingName, size_t thingNameLength, uint32_t flags)
Remove persistent Thing Shadow operation topic subscriptions.
Definition: aws_iot_shadow_subscription.c:407
struct _shadowOperation * AwsIotShadowOperation_t
Opaque handle that references an in-progress Shadow operation.
Definition: aws_iot_shadow_types.h:66
Information on a Shadow document for AwsIotShadow_GetAsync or AwsIotShadow_UpdateAsync.
Definition: aws_iot_shadow_types.h:469
AwsIotShadowError_t AwsIotShadow_UpdateSync(IotMqttConnection_t mqttConnection, const AwsIotShadowDocumentInfo_t *pUpdateInfo, uint32_t flags, uint32_t timeoutMs)
Send a Thing Shadow update with a timeout.
Definition: aws_iot_shadow_api.c:1073
AwsIotShadowError_t AwsIotShadow_Wait(AwsIotShadowOperation_t operation, uint32_t timeoutMs, const char **const pShadowDocument, size_t *const pShadowDocumentLength)
Wait for a Shadow operation to complete.
Definition: aws_iot_shadow_api.c:1105
AwsIotShadowError_t AwsIotShadow_SetDeltaCallback(IotMqttConnection_t mqttConnection, const char *pThingName, size_t thingNameLength, uint32_t flags, const AwsIotShadowCallbackInfo_t *pDeltaCallback)
Set a callback to be invoked when the Thing Shadow desired and reported states differ.
Definition: aws_iot_shadow_api.c:1181
AwsIotShadowError_t AwsIotShadow_DeleteAsync(IotMqttConnection_t mqttConnection, const char *pThingName, size_t thingNameLength, uint32_t flags, const AwsIotShadowCallbackInfo_t *pCallbackInfo, AwsIotShadowOperation_t *const pDeleteOperation)
Delete a Thing Shadow and receive an asynchronous notification when the Delete completes.
Definition: aws_iot_shadow_api.c:736
void AwsIotShadow_Cleanup(void)
One-time deinitialization function for the Shadow library.
Definition: aws_iot_shadow_api.c:699
Types of the Thing Shadow library.