Ir para o conteúdo principal
CloudStudio

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

NameDescriptionData Type
accessTokenAccess token with permissions to update endpoint information. See this page for more information.text
deviceIDUnique device identifier or device address in format [deviceAddress] (e.g.: [device-1234]). These values can be found on the device management page.number
latitudeLatitude of the device's current location.number
longitudeLongitude of the device's current location.number
mqttMethodService method to call, in this case UpdateDeviceGeolocation.text
mqttRIDOptional request identifier, used to get a confirmation response.text

Última atualização em

Nesta página