Del via


AzureIoT_OverrideAzureSphereAuthDPS

azure_sphere_provisioning.h

Comments

Note

Only use this function when an organization-managed certificate chain is required, and the distribution and security of that certificate chain is actively managed, otherwise use the built-in authentication demonstrated in the AzureIoT DPS sample.

Override Azure Sphere certificates and use the specified certificate and private key during DPS provisioning. Once DPS registration is complete and an IOTHUB_DEVICE_CLIENT_LL_HANDLE handle has been retrieved by calling IoTHubDeviceClient_LL_CreateFromDeviceAuth, the AzureIoT_OverrideAzureSphereAuthIoTHub api will need to be called on the new IOTHUB_DEVICE_CLIENT_LL_HANDLE to indicate that the IoTHub connection should continue to use the specified certificate and private key.