Class ConnectedWindow

java.lang.Object
com.amazonaws.services.iot.client.shadow.AbstractAwsIotDevice
com.amazonaws.services.iot.client.AWSIotDevice
com.amazonaws.services.iot.client.sample.shadow.ConnectedWindow

public class ConnectedWindow extends com.amazonaws.services.iot.client.AWSIotDevice
This class encapsulates an actual device. It extends AWSIotDevice to define properties that are to be kept in sync with the AWS IoT shadow.
  • Field Summary

    Fields inherited from class com.amazonaws.services.iot.client.shadow.AbstractAwsIotDevice

    deviceReportQos, enableVersioning, methodAckQos, methodQos, reportInterval, shadowUpdateQos, thingName
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
     
    boolean
     
    void
    setRoomTemperature(float desiredTemperature)
     
    void
    setWindowOpen(boolean desiredState)
     

    Methods inherited from class com.amazonaws.services.iot.client.AWSIotDevice

    delete, delete, delete, get, get, get, getDeviceReportQos, getMethodAckQos, getMethodQos, getReportInterval, getShadowUpdateQos, isEnableVersioning, onDeviceReport, onShadowUpdate, setDeviceReportQos, setEnableVersioning, setMethodAckQos, setMethodQos, setReportInterval, setShadowUpdateQos, update, update, update

    Methods inherited from class com.amazonaws.services.iot.client.shadow.AbstractAwsIotDevice

    activate, deactivate, getClient, getCommandManager, getDevice, getDeviceSubscriptions, getJsonObjectMapper, getLocalVersion, getReportedProperties, getSyncTask, getThingName, getUpdatableProperties, isCommandReady, isTopicReady, onCommandAck, onSubscriptionAck, setClient, setLocalVersion, setSyncTask, startSync, startVersionSync, stopSync

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConnectedWindow

      public ConnectedWindow(String thingName)
  • Method Details

    • getWindowOpen

      public boolean getWindowOpen()
    • setWindowOpen

      public void setWindowOpen(boolean desiredState)
    • getRoomTemperature

      public float getRoomTemperature()
    • setRoomTemperature

      public void setRoomTemperature(float desiredTemperature)