Skip to main content

Upload an operation

caution

To use any action you need first to connect to the server. Please refer to the connect action to see how to connect to the socket.

This action will upload an operation to the drone.You can obtain the operation ID by using the REST API.

caution

The operation id is the field syncId comming from the API. You need to use this id here and not the field called id from the REST api.

"/action/upload_mission"

Body

rigiId: serial number of the drone/simulator
opId: syncId of the operation to be uploaded
tip

The rigiId (serial Number) can be obtained from the Rest api. You can list all the drones with the /drones endpoint and get the serial number from there.

Response

caution

There is no direct response from the action. Any feedback from the drone will be sent as a status_message

Example

socket.emit("/action/upload_mission", { rigiId: "SIM_223", opId: opId });