Menu
AWS Greengrass
Developer Guide

Test Communications (Device Syncs Enabled)

  1. In the AWS IoT console, choose your AWS Greengrass group, choose Devices, choose the ellipsis for the GG_TrafficLight device, then choose Sync to the Cloud:

    
                            Screenshot with Sync to the Cloud highlighted.

    You should receive a notification that the device shadow has been updated.

  2. Redeploy your modified configurations to your AWS Greengrass device.

  3. Repeat the step in which you create two command-line windows.

  4. In the AWS IoT console, choose your AWS Greengrass group, Devices, GG_TrafficLight, and then Shadow.

    Because you enabled syncs of the GG_TrafficLight shadow to AWS IoT, the shadow state in the cloud should be updated automatically whenever GG_Switch sends an update. This functionality can be used to expose the state of an AWS Greengrass device to the AWS IoT cloud.

    
                            Shadow state showing "G" for the desired property and the
                                reported property.
    
                            After 20 seconds, shadow state showing "Y" for the desired
                                property and the reported property.

    Note

    If necessary, you can troubleshoot issues by viewing the AWS Greengrass core logs, particularly router.log:

    cd /greengrass/ggc/var/log sudo cat system/router.log | more

    For more information, see Troubleshooting AWS Greengrass Applications.