Exhaustive method reference for EdgeAdapterService. For a narrative introduction, the interface's
role in the gRPC flow, and worked examples, see the Edge Adapter guide.
Every method returns CompletableFuture<CommandResult> (getCapabilities returns
CompletableFuture<CurrentCapabilities>). All are default methods returning NOT_IMPLEMENTED —
override only what your adapter supports.
Prepare a task for execution. Receives only a task ID — see the note below
startTask(String taskId, String tid)
taskId, tid
Start executing a previously prepared task. Receives only a task ID — see the note below
pauseTask(String taskId)
taskId
Pause a running task
resumeTask(String taskId)
taskId
Resume a paused task
stopTask(String taskId)
taskId
Stop a running task
The task methods receive only a task ID. To act on one, resolve it with
ConnectorService.getTaskById(taskId) and read the WaypointTaskConfig off the returned
TaskDTO — that is what the DJI adapter does to build and upload its KMZ. SAPIENT implements
them too, because its own protocol owns the task that ID refers to. MAVLink and the simulator
implement none of them — see Custom Commands
for the alternative path they use instead.
// Success without transaction IDCommandResult.success("Message", sn);// Success with transaction IDCommandResult.success("Message", tid, sn);// Error without transaction IDCommandResult.error("Error description", sn);// Error with transaction IDCommandResult.error("Error description", tid, sn);// Accepted, but still running asynchronously — pass externalExecutionId so a later// stopTask call can reference this specific runCommandResult.success("Waypoint mission started", vendorExecutionId, sn);// Not Implemented (used by default methods)CommandResult.notImplemented("Command not supported", sn);
EdgeAdapterServiceImpl extends the interface with convenience overloads that automatically use the
configured serial number from EdgeClientConfig.sn():
openCover() / closeCover() (no sn parameter)
startCharging() / stopCharging()
rebootAsset()
bootUpSubAsset() / bootDownSubAsset()
enterManualControl() / exitManualControl()
getCapabilities()
enableGimbalTracking(boolean)
changeAcMode(String mode)
Available automatically if your adapter extends EdgeAdapterServiceImpl instead of implementing
EdgeAdapterService directly.