Class ShadowSample
java.lang.Object
com.amazonaws.services.iot.client.sample.shadow.ShadowSample
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 Summary
Constructors -
Method Summary
-
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:
InterruptedExceptioncom.amazonaws.services.iot.client.AWSIotException
-