Azure / Azure/azure-iot-explorer

[BUG] PnP Telemetry with semantic type geopoint not recognized

Open
#484 1 comment 0 reactions 0 assignees View on GitHub
backlog DTDL enhancement Plug and Play
Dominant language
TypeScript
Stars
252
Forks
85
Avg merge
3h 32m
Merged PRs (30d)
2

Description

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

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

Raw data shows the received payload

```json
{
"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](https://user-images.githubusercontent.com/14916339/148114205-6686586a-cf5a-4aed-9d91-ac4702524832.png)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in the modeled events view using the supplied PnP model and raw payload. Trace how the `geopoint` telemetry named `location` is matched to the model, then verify that the modeled event recognizes it without showing the unmodeled-telemetry error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.