更新设备位置
报告设备的地理位置
通过 MQTT 更新设备位置使用以下结构:
{
"accessToken": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"deviceID": 1,
"latitude": 40.4052,
"longitude": -3.87699,
"mqttMethod": "UpdateDeviceGeolocation",
"mqttRID": "tkrs34"
}参数
| 名称 | 说明 | 数据类型 |
|---|---|---|
| accessToken | 具有更新端点信息权限的访问令牌。更多信息请参见该页面。 | text |
| deviceID | 唯一设备标识符或设备地址(格式为 [deviceAddress],例如:[device-1234])。这些值可以在设备管理页面找到。 | number |
| latitude | 指示设备当前位置的纬度。 | number |
| longitude | 指示设备当前位置的经度。 | number |
| mqttMethod | 服务对应的方法,此处为 UpdateDeviceGeolocation。 | text |
| mqttRID | 请求的可选标识符,如果希望获取确认响应。 | text |
Update RSSI 状态 and Battery Level
报告ar el estado de RRSI y/o nivel de batería de un dispositivo Este método no almacena un histórico del estado, solamente toma el último reportado y lo...
HTTP
简介 本节 describes integration with the Gear Studio platform using HTTP. This functionality is designed to allow integration with devices from a variety of manufacturers, as well as custom-built devices with Arduino, nodeMCU, Raspberry Pi, and any other platform that supports HTTP communication.