IoT中央地图图块的GPS位置

问题描述

我正在尝试让我的IoT Central应用程序使用地图图块显示GPS位置。我的JSON文件发送了位置信息,我将其绑定到地图图块,但地图图块一直在说“等待数据”,我已尽一切努力将其显示出来,但我似乎无法使其正常工作。>

我遵循了here

所示的JSON布局

您可以在下面看到“原始数据”选项卡,其中显示了传入的数据,并且正在将数据与gps功能关联,但是地图未显示任何内容enter image description here

解决方法

我刚刚进行了一次快速测试,看起来一切正常:

  1. 具有自定义设备模板的新应用 enter image description here

  2. 创建视图 enter image description here

  3. 为我的tester(模拟器)导出设备模板:

     {
       "@id": "urn:custom6ec42lhnjx:gps38u:1","@type": "CapabilityModel","contents": [],"displayName": {
         "en": "gps"
       },"implements": [
         {
       "@type": "InterfaceInstance","displayName": {
         "en": "Interface"
       },"name": "gpsea","schema": {
         "@id": "urn:custom6ec42lhnjx:gpsea:1","@type": "Interface","contents": [
           {
             "@type": [
               "Telemetry","SemanticType/Location"
             ],"displayName": {
               "en": "gps"
             },"name": "gps","schema": "geopoint"
           },{
             "@type": [
               "Telemetry","SemanticType/Temperature"
             ],"displayName": {
               "en": "temp"
             },"name": "temp","schema": "double"
               }
             ],"displayName": {
               "en": "Interface"
             }
           }
         }
       ],"@context": [
         "http://azureiot.com/v1/contexts/IoTModel.json"
       ]
     } 
    
  4. 配置和模拟设备(具有随机值):

enter image description here

  1. 仪表板IoT中央应用程序:

enter image description here

  1. 模拟遥测数据的示例:

enter image description here

enter image description here

,

不幸的是,直到重新创建IoTC应用程序并重新实现处理webhook的功能后,我才重新启动并删除了到目前为止所做的一切,终于使它正常工作了。由于数据格式和其他所有内容保持不变,仍然很奇怪。但是谢谢您的帮助。