IotHubStatusCode 枚举

定义

An IoT Hub status code. Included in a message from an IoT Hub to a device.

public enum IotHubStatusCode
继承
java.lang.Object
java.lang.Enum<IotHubStatusCode>
IotHubStatusCode

继承成员

com.microsoft.azure.sdk.iot.device._iot_hub_status_code_1abfccf4618ed37e1bb186d43617fdca84

字段

BAD_FORMAT
ERROR
HUB_OR_DEVICE_ID_NOT_FOUND
INTERNAL_SERVER_ERROR
MESSAGE_EXPIRED
OK
OK_EMPTY
PRECONDITION_FAILED
REQUEST_ENTITY_TOO_LARGE
SERVER_BUSY
THROTTLED
TOO_MANY_DEVICES
UNAUTHORIZED

方法

getConnectionStatusException(IotHubStatusCode statusCode, String statusDescription)

public static IotHubServiceException getConnectionStatusException(IotHubStatusCode statusCode, String statusDescription)

参数

statusCode
IotHubStatusCode
statusDescription
String

返回

getIotHubStatusCode(int httpsStatus)

Returns the IoT Hub status code referenced by the HTTPS status code.

public static IotHubStatusCode getIotHubStatusCode(int httpsStatus)

参数

httpsStatus
int

the HTTPS status code.

返回

the corresponding IoT Hub status code.

例外

IllegalArgumentException

if the HTTPS status code does not map to an IoT Hub status code.

适用于