Azure / azure-iot-explorer

Cross-platform UI for interacting with devices attached to Azure IoT Hub. This tool is meant for learning and testing, not for production environment.
MIT License
224 stars 73 forks source link

[BUG] PnP Telemetry with semantic type geopoint not recognized #484

Open rido-min opened 2 years ago

rido-min commented 2 years ago

Using a PnP interface with a telemetry schema geopoint and temperature:

{
        "@type": [
            "Telemetry",
            "Location"
        ],
        "name": "location",
        "schema": "geopoint"
},
{
          "@type": [
                "Telemetry",
                "Temperature"
            ],
            "name": "temperature",
            "schema": "double",
            "unit": "degreeCelsius"
}

Raw data shows the received payload

{
  "body": {
    "location": {
      "lat": -114.0298,
      "lon": 34.5574,
      "alt": 657.8799
    },
    "temperature": 23
  },
  "enqueuedTime": "Tue Jan 04 2022 11:32:34 GMT-0800 (Pacific Standard Time)"
}

When trying to see the modeled events shows the error message:

This telemetry 'location' is not in the model. You may consider modeling it.

image

YingXue commented 2 years ago

Relates to #433