Update Device Location
Reporting a Device's Geographic Location
Updating a device's location over MQTT uses the following structure:
{
"accessToken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"deviceID": 1,
"latitude": 40.4052,
"longitude": -3.87699,
"mqttMethod": "UpdateDeviceGeolocation",
"mqttRID": "tkrs34"
}Parameters
| Name | Description | Data Type |
|---|---|---|
| accessToken | Access token with permissions to update endpoint information. See this page for more information. | text |
| deviceID | Unique device identifier or device address in format [deviceAddress] (e.g.: [device-1234]). These values can be found on the device management page. | number |
| latitude | Latitude of the device's current location. | number |
| longitude | Longitude of the device's current location. | number |
| mqttMethod | Service method to call, in this case UpdateDeviceGeolocation. | text |
| mqttRID | Optional request identifier, used to get a confirmation response. | text |
Last updated on