Search code examples
azure-iot-central

What is the correct format for location that works with azure iot central's device property?


I updated a device property with location floating points like (11.111, -116.11) and in dms format but seems like the Azure map in dashboard doesn't get updated. Does anyone have any ideas ?


Solution

  • If you are using .Net API, the location can be specified as below (code example):

    TwinCollection reportedProperties = new TwinCollection();
    
    reportedProperties["devicelocation"] = new { lon= 122, lat= 45 };