你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ProvisioningDeviceClient Class
- java.
lang. Object - com.
microsoft. azure. sdk. iot. provisioning. device. ProvisioningDeviceClient
- com.
public class ProvisioningDeviceClient
Method Summary
Modifier and Type | Method and Description |
---|---|
void |
closeNow()
Closes all the executors opened by the client if they have not already closed. |
static
Provisioning |
create(String globalEndpoint, String idScope, ProvisioningDeviceClientTransportProtocol protocol, SecurityProvider securityProvider)
Creates an instance of Provisioning |
void |
registerDevice(ProvisioningDeviceClientRegistrationCallback provisioningDeviceClientRegistrationCallback, Object context)
Register's a device with the service and provides you with iothub uri and the registered device. |
void |
registerDevice(ProvisioningDeviceClientRegistrationCallback provisioningDeviceClientRegistrationCallback, Object context, AdditionalData additionalData)
Register's a device with the service and provides you with iothub uri and the registered device. |
Methods inherited from java.lang.Object
Method Details
closeNow
public void closeNow()
Closes all the executors opened by the client if they have not already closed.
create
public static ProvisioningDeviceClient create(String globalEndpoint, String idScope, ProvisioningDeviceClientTransportProtocol protocol, SecurityProvider securityProvider)
Creates an instance of ProvisioningDeviceClient
Parameters:
null
.
null
.
null
.
null
.
Returns:
Throws:
registerDevice
public void registerDevice(ProvisioningDeviceClientRegistrationCallback provisioningDeviceClientRegistrationCallback, Object context)
Register's a device with the service and provides you with iothub uri and the registered device.
Parameters:
null
.
null
.
Throws:
registerDevice
public void registerDevice(ProvisioningDeviceClientRegistrationCallback provisioningDeviceClientRegistrationCallback, Object context, AdditionalData additionalData)
Register's a device with the service and provides you with iothub uri and the registered device.
Parameters:
null
.
null
.
Throws: