RegistryManager.updateDeviceAsync 方法

定义

重载

updateDeviceAsync(Device device)

Async wrapper for updateDevice() operation

updateDeviceAsync(Device device, Boolean forceUpdate)

Async wrapper for forced updateDevice() operation

updateDeviceAsync(Device device)

Async wrapper for updateDevice() operation

public CompletableFuture<Device> updateDeviceAsync(Device device)

参数

device
Device

The device object containing updated data

返回

CompletableFuture<Device>

The future object for the requested operation

例外

IOException

This exception is thrown if the IO operation failed

IotHubException

This exception is thrown if the response verification failed

updateDeviceAsync(Device device, Boolean forceUpdate)

Async wrapper for forced updateDevice() operation

public CompletableFuture<Device> updateDeviceAsync(Device device, Boolean forceUpdate)

参数

device
Device

The device object containing updated data

forceUpdate
Boolean

True is the update has to be forced regardless if the device state

返回

CompletableFuture<Device>

The future object for the requested operation

例外

IOException

This exception is thrown if the IO operation failed

IotHubException

This exception is thrown if the response verification failed

适用于