AWS IoT Device SDK C:
Shadow
AWS IoT Device Shadow library
|
Return to main page ↑ |
The Shadow demo demonstrates usage of the Shadow library.
The demo program uses Shadow updates and delta callbacks to simulate toggling a remote device's state. It sends a Shadow update with a new desired state and waits for the device to change its reported state in response to the new desired state. In addition, a Shadow updated callback is used to print the changing Shadow states.
See Demo Configuration for configuration settings that change the behavior of the demo.
The diagram below shows the workflow of the Shadow demo. The Shadow demo runs on an established MQTT connection; MQTT connection setup and teardown are not shown.