| Package | Description |
|---|---|
| com.microsoft.azure.sdk.iot.service |
| Modifier and Type | Method and Description |
|---|---|
Device |
RegistryManager.addDevice(Device device)
Add device using the given Device object
Return with the response device object from IotHub
|
static Device |
Device.createDevice(String deviceId,
AuthenticationType authenticationType)
Static create function.
|
static Device |
Device.createFromId(String deviceId,
DeviceStatus status,
SymmetricKey symmetricKey)
Static create function.
|
Device |
RegistryManager.getDevice(String deviceId)
Get device data by device Id from IotHub
|
Device |
RegistryManager.updateDevice(Device device)
Update device not forced
|
Device |
RegistryManager.updateDevice(Device device,
Boolean forceUpdate)
Deprecated.
The forceUpdate argument does nothing so this method will always behave the same as
RegistryManager.updateDevice(Device) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Device> |
RegistryManager.addDeviceAsync(Device device)
Deprecated.
Use the synchronous version of this API
RegistryManager.addDevice(Device). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
CompletableFuture<Device> |
RegistryManager.getDeviceAsync(String deviceId)
Deprecated.
Use the synchronous version of this API
RegistryManager.getDevice(String). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
ArrayList<Device> |
RegistryManager.getDevices(Integer maxCount)
Deprecated.
as of release 1.12.0. Please use
DeviceTwin.queryTwin(String sqlQuery, Integer pageSize)
to query for all devices. |
CompletableFuture<ArrayList<Device>> |
RegistryManager.getDevicesAsync(Integer maxCount)
Deprecated.
as of release 1.12.0. Please use
DeviceTwin.queryTwin(String sqlQuery, Integer pageSize)
to query for all devices. |
CompletableFuture<Device> |
RegistryManager.updateDeviceAsync(Device device)
Deprecated.
Use the synchronous version of this API
RegistryManager.updateDevice(Device). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
CompletableFuture<Device> |
RegistryManager.updateDeviceAsync(Device device,
Boolean forceUpdate)
Deprecated.
The forceUpdate argument does nothing so this method will always behave the same as
RegistryManager.updateDeviceAsync(Device) |
| Modifier and Type | Method and Description |
|---|---|
Device |
RegistryManager.addDevice(Device device)
Add device using the given Device object
Return with the response device object from IotHub
|
CompletableFuture<Device> |
RegistryManager.addDeviceAsync(Device device)
Deprecated.
Use the synchronous version of this API
RegistryManager.addDevice(Device). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
String |
RegistryManager.getDeviceConnectionString(Device device)
Return the iothub device connection string for a provided device.
|
void |
RegistryManager.removeDevice(Device device)
Remove device
|
Device |
RegistryManager.updateDevice(Device device)
Update device not forced
|
Device |
RegistryManager.updateDevice(Device device,
Boolean forceUpdate)
Deprecated.
The forceUpdate argument does nothing so this method will always behave the same as
RegistryManager.updateDevice(Device) |
CompletableFuture<Device> |
RegistryManager.updateDeviceAsync(Device device)
Deprecated.
Use the synchronous version of this API
RegistryManager.updateDevice(Device). This asynchronous
API only spawned a thread to run the synchronous API, so users are advised to do this themselves
in order to have control over the spawned threads. |
CompletableFuture<Device> |
RegistryManager.updateDeviceAsync(Device device,
Boolean forceUpdate)
Deprecated.
The forceUpdate argument does nothing so this method will always behave the same as
RegistryManager.updateDeviceAsync(Device) |
Copyright © 2022. All rights reserved.