| Package | Description |
|---|---|
| com.microsoft.azure.sdk.iot.service.devicetwin | |
| com.microsoft.azure.sdk.iot.service.jobs |
| Modifier and Type | Method and Description |
|---|---|
DeviceTwinDevice |
DeviceTwin.getNextDeviceTwin(Query deviceTwinQuery)
Returns the next device twin document.
|
DeviceTwinDevice |
DeviceTwin.replaceTwin(DeviceTwinDevice device)
Replace the full device twin for a given device with the provided device twin.
|
| Modifier and Type | Method and Description |
|---|---|
QueryCollectionResponse<DeviceTwinDevice> |
DeviceTwin.next(QueryCollection deviceTwinQueryCollection)
Returns the next
DeviceTwinDevice collection for the given query alongside the continuation token needed
for querying the next page. |
QueryCollectionResponse<DeviceTwinDevice> |
DeviceTwin.next(QueryCollection deviceTwinQueryCollection,
QueryOptions options)
Returns the next
DeviceTwinDevice collection for the given query alongside the continuation token needed
for querying the next page. |
| Modifier and Type | Method and Description |
|---|---|
void |
DeviceTwin.getTwin(DeviceTwinDevice device)
This method retrieves device twin for the specified device.
|
void |
DeviceTwin.replaceDesiredProperties(DeviceTwinDevice device)
This method replaces desired properties for the specified device.
|
void |
DeviceTwin.replaceTags(DeviceTwinDevice device)
This method replaces tags for the specified device.
|
DeviceTwinDevice |
DeviceTwin.replaceTwin(DeviceTwinDevice device)
Replace the full device twin for a given device with the provided device twin.
|
Job |
DeviceTwin.scheduleUpdateTwin(String queryCondition,
DeviceTwinDevice updateTwin,
Date startTimeUtc,
long maxExecutionTimeInSeconds)
Creates a new Job to update twin tags and desired properties on one or multiple devices.
|
void |
DeviceTwin.updateDesiredProperties(DeviceTwinDevice device)
Deprecated.
Use
DeviceTwin.updateTwin(DeviceTwinDevice device) to update desired properties. |
void |
DeviceTwin.updateTwin(DeviceTwinDevice device)
This method updates device twin for the specified device.
|
| Modifier and Type | Method and Description |
|---|---|
DeviceTwinDevice |
JobResult.getUpdateTwin()
Getter for update twin json
|
| Modifier and Type | Method and Description |
|---|---|
JobResult |
JobClient.scheduleUpdateTwin(String jobId,
String queryCondition,
DeviceTwinDevice updateTwin,
Date startTimeUtc,
long maxExecutionTimeInSeconds)
Creates a new Job to update twin tags and desired properties on one or multiple devices
|
Copyright © 2022. All rights reserved.