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:
Applies to
Azure SDK for Java