适用于 Windows 的 Azure IOT Hub 设备更新代理或 c# 中的任何支持库

问题描述 投票:0回答:1

我正在尝试构建一个应用程序,以使用设备更新程序服务将更新包 Msi 文件从 azure IOT 集线器获取到设备,我找到了一个包 azure.iot.devices,我可以在其中导入更新并监控它,但我没有获得模拟器代码如何在设备中获取更新包文件...需要帮助或一些输入如何实现此目的。

c# azure azure-iot-hub azure-update-management-center
1个回答
0
投票

enter image description here

    要在 IoT 中心添加访问控制,请导航到 Azure 门户中的 IoT 中心,从导航菜单中选择访问控制 (IAM),然后选择“添加角色分配”。

enter image description here

enter image description here

  • 选择 Azure 设备更新后,确保 IoT 中心数据贡献者角色出现在角色分配下。

  • 要搜索“Azure 设备更新”,请使用用户、组或服务主体的选择选项。

enter image description here

enter image description here

  • 从左侧窗格中选择“设备”,然后选择“添加设备”。

  • 选择“添加模块标识”,然后在“模块标识名称”字段中输入模块的名称。

  • 在孪生文件中,在型号 ID 和版本标签旁边,插入具有以下值的新设备更新标签:

"tags": { "ADUGroup": "DU-simulator-tutorial" },

enter image description here

    安装和配置设备
  • Update agent

enter image description here

  • 在容器中选择“上传”选项,然后继续处理所需的文件。选择 adu-update-image-raspberrypi3.swu 和 TutorialImportManifest_Sim.importmanifest.json 文件后,单击“上传”继续。

  • 组和部署中选择“检查状态”后。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.