java.lang.Object
com.amazonaws.services.iot.client.sample.shadow.ShadowSample

public class ShadowSample extends Object
This example demonstrates how to use AWSIotMqttClient and a derived AWSIotDevice to keep the device connected with its shadow in the cloud. This is the recommended way of accessing a shadow and keeping it synchronized with the device. The only thing the application needs to provide in the derived class is the annotated device properties and their corresponding getter and setter methods.
  • Constructor Details

    • ShadowSample

      public ShadowSample()
  • Method Details

    • setClient

      public static void setClient(com.amazonaws.services.iot.client.AWSIotMqttClient client)
    • main

      public static void main(String[] args) throws InterruptedException, com.amazonaws.services.iot.client.AWSIotException
      Throws:
      InterruptedException
      com.amazonaws.services.iot.client.AWSIotException