一键起飞
curl -X POST https://your-server:8970/api/external/drone/takeoff
-H "Content-Type: application/json"
-H "X-API-USERNAME: drone_api"
-H "X-API-PASSWORD:*"
-d '{"dockSn": "DOCK123456", "altitude": 20}'
返航
curl -X POST https://your-server:8970/api/external/drone/return-home
-H "Content-Type: application/json"
-H "X-API-USERNAME: drone_api"
-H "X-API-PASSWORD: *"
-d '{"dockSn": "DOCK123456"}'

{"time":"2026-06-12T15:26:31.853348+08:00","level":"debug","msg":"mqtt_packet_received","clientid":"299482b8c29e43f5b427a6b61dcb0944-1781248993398","username":"web-client","peername":"10.60.3.28:10884","tag":"WS-MQTT","pid":"<0.8605271.0>","packet":"PUBLISH(Q1, R0, D0, Topic=thing/product/ZA125627D372MD/services, PacketId=26742, Payload(text)={"method":"takeoff_to_point","data":{"security_takeoff_height":50,"rth_mode":1,"rth_altitude":100,"commander_mode_lost_action":0,"max_speed":10,"commander_flight_mode":1,"commander_flight_height":20,"flight_id":"890a78e5-5b4b-41fc-903f-5afc3676eeff"},"bid":"06eb8df2-ecdc-4ccf-902e-fc3eea6cd77d","tid":"c7e0ec70-cf03-41e7-b00c-7148458a439a","timestamp":1781249191028})","line":460}