This topic describes the interface of laser map data in the sweeper panel SDK.
getLaserMapHistoryList
Returns a list of laser history cleaning records.
Request parameters
| Parameter |
Data type |
Description |
Required |
| opt |
IGetLaserHistoryListOpts |
See IGetLaserHistoryListOpts. |
No |
IGetGyroMapLatestMediaOpts
| Parameter |
Data type |
Description |
Required |
| page |
Number |
The page number. |
No |
| pageLimit |
Number |
The maximum number of entries displayed per page. |
No |
Response parameters
| Parameter |
Data type |
Description |
| response |
ILaserRecordExportList |
See `ILaserRecordExportList. |
ILaserRecordExportList
| Parameter |
Data type |
Description |
| dataList |
List[] |
The list of historical cleaning data. See List. |
| hasNext |
Boolean |
Indicates whether there is the next page. |
List
| Parameter |
Data type |
Description |
| id |
Number |
The unique identifier. |
| file |
String |
The cleanup record map file URL resource (Temporary URL, do not cache it). |
| value |
String |
The cleaning record data. |
| timestamp |
Boolean |
The cloud timestamp. |
Sample request
import { laserDataApi } from '@tuya/tuya-panel-robot-sdk'
laserDataApi.getLaserMapHistoryList().then((response) => {
console.log(response)
}).catch()
Sample response
{
"dataList": [
{
"file": "https://ty-storage-permanent-1254153901.cos.tuyacn.com/f94e56-12852922-yxzne56c96fb00522aa7/common/history/time_1612427487_mapid_1610073180.bin?Expires=1613633885&OSSAccessKeyId=AKIDvVkdG96oLupCWf_jE_VRFZEk56XlXUPd3HsoOdafgfkgiAri9T_sw-gl_UuOjOmg&Signature=UZcU%2BPY8SXTyGZg8lgL6fdnppZE%3D&security-token=ZWLGtQd16rZdUrhwE9112hIOHl0iXt0a4edc04acad85752c651384772bce58c6jHqVKXFHz-0eUAJCAkYp77G00TlJNO8SD6iflbzSWTz2gGnWM6nF7h5hu72xxl6hsp7Z0cclsk5lxADIrEzghIOhtbJttqxGbB5qP1KWTqPJUgrzpa3vFTTRjTr5qPuqRdCei_sL5vflMzxJiEAWCJgXKCjez-j3vo-tvl_FcyibEp3tbYeRwfi0zKL34_F__Ep5UuqANxK-sX-qKV1R6P1Gv9pRR6C6brsQiifmhVKjGGxSAaDVQI2bfZxMpk5xzfPRPtHJuWbMTfQYkjtlR61SXX8Lhv6h8OrI2s_UZxj-FOc6kCRULba2i7FSIQDb-orUjmwrkiwsiwVXwI-fjclaratNS4tplKPBvTNN2cGdSW3C9YcOXJDlA0IlWQ4i-bowoMIjBF7rI2uW-nI05Q",
"id": 6894808,
"timestamp": 1612427491,
"value": "yxzne56c96fb00522aa7_1610073180_1612427427_1612427446_1_21573.txt"
}
],
"hasNext": false
}
getLaserMultiFloorMapList
Returns the laser multi-floor map list.
Request parameters
| Parameter |
Data type |
Description |
Required |
| opt |
IGetLaserHistoryListOpts |
See IGetLaserHistoryListOpts. |
No |
IGetGyroMapLatestMediaOpts
| Parameter |
Data type |
Description |
Required? |
| page |
Number |
The page number. |
No |
| pageLimit |
Number |
The maximum number of entries displayed per page. |
No |
Response parameters
| Parameter |
Data type |
Description |
| response |
ILaserMultiFloorExportList |
See ILaserMultiFloorExportList. |
ILaserMultiFloorExportList
| Parameter |
Data type |
Description |
| dataList |
List[] |
The list of multi-floor map data. See List. |
| hasNext |
Boolean |
Indicates whether there is the next page. |
List
| Parameter |
Data type |
Description |
| id |
Number |
The unique identifier. |
| historyFile |
String |
The cleanup record map file url resource (temporary URL, do not cache it). |
| backupFile |
String |
The cleaning record map backup file URL resource (Temporary URL, do not cache it). |
| value |
String |
The cleaning record data. |
| timestamp |
Boolean |
The cloud timestamp. |
Sample request
import { laserDataApi } from '@tuya/tuya-panel-robot-sdk'
laserDataApi.getLaserMultiFloorMapList().then((response) => {
console.log(response)
}).catch()
Sample response
{
"dataList": [
{
"backupFile": "https://ty-storage-permanent-1254153901.cos.tuyacn.com/f94e56-12852922-yxzne56c96fb00522aa7/common/1611825517-map.txt?Expires=1613633886&OSSAccessKeyId=AKIDvVkdG96oLupCWf_jE_VRFZEk56XlXUPd3HsoOdafgfkgiAri9T_sw-gl_UuOjOmg&Signature=NnJS%2FOVlexh9ZZ5Ws2qW9uHtPEs%3D&security-token=ZWLGtQd16rZdUrhwE9112hIOHl0iXt0a4edc04acad85752c651384772bce58c6jHqVKXFHz-0eUAJCAkYp77G00TlJNO8SD6iflbzSWTz2gGnWM6nF7h5hu72xxl6hsp7Z0cclsk5lxADIrEzghIOhtbJttqxGbB5qP1KWTqPJUgrzpa3vFTTRjTr5qPuqRdCei_sL5vflMzxJiEAWCJgXKCjez-j3vo-tvl_FcyibEp3tbYeRwfi0zKL34_F__Ep5UuqANxK-sX-qKV1R6P1Gv9pRR6C6brsQiifmhVKjGGxSAaDVQI2bfZxMpk5xzfPRPtHJuWbMTfQYkjtlR61SXX8Lhv6h8OrI2s_UZxj-FOc6kCRULba2i7FSIQDb-orUjmwrkiwsiwVXwI-fjclaratNS4tplKPBvTNN2cGdSW3C9YcOXJDlA0IlWQ4i-bowoMIjBF7rI2uW-nI05Q",
"historyFile": "https://ty-storage-permanent-1254153901.cos.tuyacn.com/f94e56-12852922-yxzne56c96fb00522aa7/common/1611825517-record.txt?Expires=1613633886&OSSAccessKeyId=AKIDvVkdG96oLupCWf_jE_VRFZEk56XlXUPd3HsoOdafgfkgiAri9T_sw-gl_UuOjOmg&Signature=A%2BCmLURmics742VSgf1XMB1iI%2B4%3D&security-token=ZWLGtQd16rZdUrhwE9112hIOHl0iXt0a4edc04acad85752c651384772bce58c6jHqVKXFHz-0eUAJCAkYp77G00TlJNO8SD6iflbzSWTz2gGnWM6nF7h5hu72xxl6hsp7Z0cclsk5lxADIrEzghIOhtbJttqxGbB5qP1KWTqPJUgrzpa3vFTTRjTr5qPuqRdCei_sL5vflMzxJiEAWCJgXKCjez-j3vo-tvl_FcyibEp3tbYeRwfi0zKL34_F__Ep5UuqANxK-sX-qKV1R6P1Gv9pRR6C6brsQiifmhVKjGGxSAaDVQI2bfZxMpk5xzfPRPtHJuWbMTfQYkjtlR61SXX8Lhv6h8OrI2s_UZxj-FOc6kCRULba2i7FSIQDb-orUjmwrkiwsiwVXwI-fjclaratNS4tplKPBvTNN2cGdSW3C9YcOXJDlA0IlWQ4i-bowoMIjBF7rI2uW-nI05Q",
"id": 6759814,
"timestamp": 1611825520,
"value": "/userdata/appdata/maps//1610073180/record/yxzne56c96fb00522aa7_1610073180_1611825516_1611825516_0_21573.txt"
}
],
"hasNext": false
}