为什么第三方平台使用机场执行一键起飞或航线任务时,出现等待时间过长的问题?

问题现象: 第三方平台使用机场执行一键起飞或航线任务时,每次起飞前需要检查机场的 “离线地图” 和 “自定义飞行区” 数据与云端是否一致。如果云端不回复该消息,机场会有一个超时等待逻辑,大概会等待40s。

解决方案: 如果第三方平台并不支持 “离线地图” 和 “自定义飞行区” 功能,可以针对机场的获取离线地图协议(Method: offline_map_get)和自定义飞行区文件获取协议(Method: flight_areas_get)的请求,回复以下内容:

Topic: thing/product/{gateway_sn}/requests_reply

Direction: down

Method: flight_areas_get

{
    "bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
    "data": {
        "result": 0
    },
    "method": "flight_areas_get",
    "tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
    "timestamp": 1654070968655
}

Topic: thing/product/{gateway_sn}/requests_reply

Direction: down

Method: offline_map_get

{
    "bid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
    "data": {
        "result": 0
    },
    "method": "offline_map_get",
    "tid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx",
    "timestamp": 1654070968655
}

Last updated