com.microsoft.azure.sdk.iot.service.twin
Classes
ConfigurationInfo | ||
DeviceCapabilities | ||
Twin |
Represent the twin on IoT hub. Implementing constructors and serialization functionality. The object is a representation of a module twin if and only if the moduleId is set. |
|
TwinClient |
Use the TwinClient class to manage the device twins in IoT hubs. |
|
TwinClientOptions |
Configurable options for all twin client operations. |
|
TwinCollection |
Representation of a single Twin collection. The TwinCollection is an extension of a By the Twin definition, the A TwinCollection can contain up to 5 levels of sub TwinCollections. Once the TwinCollection is a extension of the The collection will be represented in the rest API as a JSON in the body. It can or cannot contain the metadata (identified by the $ character at the beginning of the key. Because of the Twin metadata, the character $ is not allowed in the entry key. For instance, the following JSON is a valid TwinCollection with its metadata.
This class exposes the Twin collection with or without metadata as a Map here user can get both the value and the metadata. For instance, in the above TwinCollection, get(Object) for Color will return White and the getTwinMetadata(String key) for Color will return the Object TwinMetadata that contain getLastUpdated() that will returns the For the nested TwinCollection, you can do the same, for instance, the following code will return the value and metadata of the NewValue nested in MaxSpeed:
|
|
TwinMetadata |
Representation of a single Twin metadata for the TwinCollection. The metadata is a set of pairs lastUpdated/lastUpdatedVersion for each property and sub-property in the Twin. It is optionally provided by the service and the clients can only ready it. This class store the Date and Version for each entity in the TwinCollection. For instance, the following is a valid TwinCollection with its metadata.
|
|
TwinProperties |
Representation of a single Twin Properties for the TwinState. The Properties on the TwinState shall contains one TwinCollection of desired property. The desired property is a collection that can contain a associated TwinMetadata. These metadata are provided by the Service and contains information about the last updated date time, and version. For instance, the following is a valid desired property, represented as
|
|
TwinState |
Representation of a single Twin. The TwinState can contain one TwinCollection of Tags, and one TwinCollection of properties.desired. Each entity in the collections can contain a associated TwinMetadata. These metadata are provided by the Service and contains information about the last updated date time, and version. For instance, the following is a valid TwinState, represented as
|
Enums
ConfigurationStatus | ||
TwinConnectionState |
Enum for device connection state |
|
TwinStatus |
Enum for device status |
Azure SDK for Java