如何使用DPS将设备配置到IoT中心?Documentation表示,有一种高级选项可用于将设备直接配置到IoT中心。但是,当我签入DPS应用程序时,没有链接到物联网控制的选项。
我对物联网开发是个新手。
发布于 2018-11-27 03:31:32
Azure IoT中心在创建应用程序时提供设备配置服务(DPS)。配置你的设备所需的详细信息都可以从你的IoT中心应用程序中检索到。根据您的使用案例,按照以下说明将设备连接到IoT中心:
发布于 2019-03-08 07:00:38
您可以查看以下示例- https://github.com/Azure/iotc-device-bridge/blob/master/IoTCIntegration/lib/engine.js第119行
const sasToken =等待getRegistrationSasToken(context,deviceId);
const registrationOptions = {
url: `https://${registrationHost}/${context.idScope}/registrations/${deviceId}/register?api-version=${registrationApiVersion}`,
method: 'PUT',
json: true,
headers: { Authorization: sasToken },
body: { registrationId: deviceId }
};
https://stackoverflow.com/questions/53429463
复制相似问题