IoTHubDeviceClient_LL_CreateWithAzureSphereDeviceAuthProvisioning

azure_sphere_provisioning.h

评论

注意

建议考虑并评估调用此阻止函数与使用更可缩放的非阻塞模式(如 AzureIoT DPS 示例中connection_dps.c 中实现的模式)的潜在缺点。

将设备预配服务 (DPS) 与 Azure IoT 中心 配合使用时,使用此函数获取Azure IoT 中心句柄。 函数通过对 DPS 进行身份验证、创建设备、注册设备以及获取Azure IoT 中心句柄来包装大部分逻辑。