question

WillessBrian-1191 avatar image
0 Votes"
WillessBrian-1191 asked WillessBrian-1191 commented

Help with Azure Plug and Play Geospatial schema

I'm working on creating a new Azure Plug and Play model. I like to use the Azure IoT Explorer application to test/validate my PnP implementation.

I've defined a entry in my model for GPS data, however when I send the data, the Azure IoT Explorer application does not resolve my telemetry data to the model entry. I found a DTDLv2 reference showing details for Gelspatial data here. This looks pretty straight forward.

86820-image.png

Here's where I am . . .

86895-image.png
86923-image.png

  • My application is sending up proper JSON telemetry
    86934-image.png

  • However, if I select the Azure IoT Explorer option to "Show modeled events" the telemetry is not resolved to the model

86874-image.png

Any idea what I'm doing wrong?

Thanks for the help!


azure-iot-centralazure-iot-sdkazure-sphereazure-iot-pnp
image.png (38.0 KiB)
image.png (4.9 KiB)
image.png (18.4 KiB)
image.png (10.3 KiB)
image.png (43.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

WillessBrian-1191 avatar image
0 Votes"
WillessBrian-1191 answered

azure-iot-explorer issue created: Link
Documentation issue created: Link


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

matsujirushi avatar image
0 Votes"
matsujirushi answered WillessBrian-1191 commented
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @matsujirushi,

Here are the results, notice that with that change the "name" and "schema" values are not recognized either.

86875-image.png


0 Votes 0 ·
image.png (17.1 KiB)

Hi @WillessBrian-1191 ,
Sorry.
I tried it, and the same thing happened.

86972-image.png


I think the model file and message are fine.
It is a good idea to write an issue on github.
https://github.com/Azure/azure-iot-explorer/issues


0 Votes 0 ·
image.png (19.0 KiB)
WillessBrian-1191 avatar image
0 Votes"
WillessBrian-1191 answered matsujirushi commented

Thanks for your time, I'll create a bug report in that repo and also on the documentation page that specifies the capital "P"oint string.

I thought about just trying this with an IoTCentral application to see if it works correctly, but I don't see a way to configure IoTCentral to resolve my PnP model without submitting it to the public PnP repo. Is there a way to have IoTCentral resolve my model from a different repo where I can make changes to my model?

Thanks

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I thought about just trying this with an IoTCentral application to see if it works correctly, but I don't see a way to configure IoTCentral to resolve my PnP model without submitting it to the public PnP repo.


You can create a template manually in IoTC app and import the model file :-)
If you import the model into the IoTC app beforehand, it does not seem to refer to the global repository.

1 Vote 1 ·