0

通过批量注册将多台设备注册到 AWS IoT Core 时,官方示例配置模板适用于本示例。但是,当向提供不同类型(例如整数)的配置模板添加新参数时,会引发以下错误。

An error occurred (InvalidRequestException) when calling the StartThingRegistrationTask operation: Invalid provisioning template or parameters. Template format error: unsupported type or structure with the location of [Source: (String)"{
    "Parameters": {
      "ThingName": {
        "Type": "String"
      },
      "ThingId":{
        "Type" :"Int"
      }
    }

而供应数据文件如下;

{"ThingName": "wastebin_0", "ThingId": 0}
{"ThingName": "wastebin_1", "ThingId": 1}
4

0 回答 0