ContractAPIAmqp.authenticateWithProvisioningService(RequestData requestData, ResponseCallback responseCallback, Object callbackContext) 方法

定义

Requests hub to authenticate this connection and start the registration process over AMQP

public synchronized void authenticateWithProvisioningService(RequestData requestData, ResponseCallback responseCallback, Object callbackContext)

参数

requestData
RequestData

A nonnull 

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

A nonnull 

</code> value for the callback </p>
callbackContext
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 an invalid status

适用于