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

Defined constants of the Shadow library.

Libraries may #define constants in their headers with special meanings. This page describes the meanings and uses of any constants defined by the Shadow library. Related constants are shown in a single section on this page.

Shadow Initializers

Provides default values for the data types of the Shadow library.

#define AWS_IOT_SHADOW_CALLBACK_INFO_INITIALIZER { 0 }
#define AWS_IOT_SHADOW_DOCUMENT_INFO_INITIALIZER { 0 }
#define AWS_IOT_SHADOW_OPERATION_INITIALIZER NULL

All user-facing data types of the Shadow library should be initialized using one of the following.

Warning
Failing to initialize a Shadow data type with the appropriate initializer may result in undefined behavior!
Note
The initializers may change at any time in future versions, but their names will remain the same.

Example

Shadow Function Flags

Flags that modify the behavior of Shadow library functions.

Flags should be bitwise-ORed with each other to change the behavior of Shadow library functions.

The following flags are valid for the Shadow operation functions: AwsIotShadow_DeleteAsync, AwsIotShadow_GetAsync, AwsIotShadow_UpdateAsync, and their blocking versions.

The following flags are valid for AwsIotShadow_RemovePersistentSubscriptions. These flags are not valid for the Shadow operation functions.

Note
The values of the flags may change at any time in future versions, but their names will remain the same. Additionally, flags which may be used at the same time will be bitwise-exclusive of each other.