AWS IoT Device SDK C:
Shadow
AWS IoT Device Shadow library
|
Return to main page ↑ |
Configuration settings of the Shadow demo.
Configuration settings are C pre-processor constants. They can be set with a #
in the config file (define
iot_config.h
) or by using a compiler option such as -D
in gcc. If a configuration setting is not defined, the library will use a "sensible" default value (unless otherwise noted). Because they are compile-time constants, a library must be rebuilt if a configuration setting is changed.
The settings on this page only affect the Shadow demo. In addition to the settings on this page, them Shadow demo will also be affected by settings that affect all demos.
The number of periodic Shadow updates to send in the demo.
The Shadow demo sends a new update every AWS_IOT_DEMO_SHADOW_UPDATE_PERIOD_MS milliseconds. Each update contains a new desired state, which causes a Shadow delta document to be generated and sent to the device. The device will respond to the delta document by changing its state and reporting its new state.
Possible values: Any positive integer.
Default value (if undefined): 20
How often (in milliseconds) to send a periodic Shadow update.
This value may be 0
, which causes a new Shadow update to be sent as soon as the device responds to the Shadow delta document. The total runtime of the demo will be AWS_IOT_DEMO_SHADOW_UPDATE_COUNT *
AWS_IOT_DEMO_SHADOW_UPDATE_PERIOD_MS milliseconds.
Possible values: Any non-negative integer.
Default value (if undefined): 3000