关于应用程序的 Thingpark Enterprise 问题

物联网 aws-iot 东西公园
2021-06-02 13:15:29

我们使用 Thingpark Enterprise 云已有一段时间了,但在向现有设备添加新应用程序输出方面遇到了困难。

我们使用 MQTT 作为现有项目(大约 2000 台设备)的输出,我们需要使用 AWS IoT 使用 AWS 云扩展我们的基础设施。

似乎无法将设备分组添加到新的应用程序输出(来自现有/已经导入的设备),甚至不是要调用的 API 端点(假设使用 devEUI 作为添加到新应用程序的参数)。

随着设备数量的增加,使用仪表板一个一个地手动添加每个设备变得非常耗时。有任何想法吗?

1个回答

我们确实有一组 REST API(名为 Dx-API),可帮助您自动执行此类大规模更新任务。在 ThingPark Enterprise UI 中,您可以从“帮助”菜单访问 API。对于您的具体问题,您需要遵循以下步骤:

  1. 使用 Dx-Admin API => https://thingparkenterprise.eu.actility.com/thingpark/dx/admin/latest/swagger-ui/index.html?shortUrl=tpdx-获取身份验证令牌(POST /oauth/token)admin-tpe-api-contract.json#!/Token/post_oauth_token
  2. 使用 Dx-Core API 列出您的应用程序集并收集新的所需目标的 routeRef(应用程序 ID)=> https://thingparkenterprise.eu.actility.com/thingpark/dx/core/latest/swagger-ui/ index.html?shortUrl=tpdx-core-tpe-api-contract.json#/Device/get_routes
  3. 使用预期的 routeRef 目标更新您的一组设备 => https://thingparkenterprise.eu.actility.com/thingpark/dx/core/latest/swagger-ui/index.html?shortUrl=tpdx-core-tpe-api- contract.json#/Device/put_devices__deviceRef _

警告:需要根据您使用的区域 SaaS 平台(欧洲、澳大利亚或美国平台)编辑域名:

  • thingparkenterprise.eu.actility.com
  • thingparkenterprise.au.actility.com
  • thingparkenterprise.us.actility.com

如果您需要更多信息,请与我们联系。