Currently I have a device template in IoT Central with the following property:
{
"@id": "dtmi:iotDevicesAnywhere:MfrAIUTModelIAA5Level_3o3:Location;1",
"@type": [
"Property",
"Location"
],
"description": {
"en": "Device Location"
},
"displayName": {
"en": "Location"
},
"name": "Location",
"schema": "geopoint",
"writable": true
}
I have published an event to IoT Hub and see the Property update in the Raw Data for the device:
{
"Location": {
"reported": {
"value": {
"lat": "41.5770160991936",
"lon": "-83.5955713465806",
"alt": 0
}
}
},
"_eventtype": "Property",
"_timestamp": "2022-08-29T11:49:08.577Z"
}
I have setup the Device Dashboard location as:
However on the device dashboard it is:
What is wrong?
Can you try to send the location data (longitude and latitude) from your device as numbers instead of wrapping them in strings?
{
"lat": 41.5770160991936,
"lon": -83.5955713465806,
"alt": 0
}