IoTHubDeviceClient_LL_CreateWithAzureSphereDeviceAuthProvisioning

azure_sphere_provisioning.h

Comments

Note

We recommend that you consider and evaluate the potential drawbacks of calling this blocking function versus using a more scalable non-blocking pattern such as the one implemented in connection_dps.c in the AzureIoT DPS sample.

Use this function to get an Azure IoT Hub handle when you use the Device Provisioning Service (DPS) with Azure IoT Hub. The function wraps much of the logic with authentication to DPS, creating a device, registering a device, and getting an Azure IoT Hub handle for you.