ContractAPIHttp.getRegistrationStatus(RequestData requestData, ResponseCallback responseCallback, Object dpsAuthorizationCallbackContext) 方法

定义

Gets the registration status over HTTP

public synchronized void getRegistrationStatus(RequestData requestData, ResponseCallback responseCallback, Object dpsAuthorizationCallbackContext)

参数

requestData
RequestData

A nonnull 

</code> value with all the request data </p>
responseCallback
ResponseCallback

A nonnull 

</code> value for the callback </p>
dpsAuthorizationCallbackContext
Object

An object for context. Can benull 

</code></p>

返回

synchronized void

例外

ProvisioningDeviceClientException

If any of the parameters are invalid (null 

</code> or empty) </p>
ProvisioningDeviceTransportException

If any of the API calls to transport fail

ProvisioningDeviceHubException

If hub responds back with status other than 300 or less.

适用于