TwinParser.updateDeviceManager(String deviceId, TwinStatus status, String statusReason) 方法

定义

Update the device manager information in the collection, and return a string with a json that contains a the new device manager description, including new and old values.

public String updateDeviceManager(String deviceId, TwinStatus status, String statusReason)

参数

deviceId
String

- Device name

status
TwinStatus

- Device status("enabled", "disabled")

statusReason
String

- A 128 char long string storing the reason of suspension (for status="disabled").

返回

String

Json with the manager description. Null if nothing change.

例外

IllegalArgumentException

This exception is thrown if there are any inconsistent in the provided description.

适用于