Commands ex-server
ICommandServerEx<TArgPacket> is a higher-level command dispatcher over ICommandServer. It provides command handler registry by MavCmd.
Use case
Register required services:
Get services:
Register and remove handler:
Built-in implementations
CommandLongServerEx: dispatcher overICommandServer.OnCommandLong. Usespayload.confirmationto detect duplicate retries.CommandIntServerEx: dispatcher overICommandServer.OnCommandInt. Confirmation is always treated as0.
API
ICommandServerEx<TArgPacket>
Represents an extended command server.
Property | Type | Description |
|---|---|---|
|
| Gets the |
|
| Commands supported by the server. |
|
| Sets the command delegate for the specified MAVLink command. |
CommandDelegate<TArgPacket>
Represents a delegate that defines a command handler.
Parameter | Type | Description |
|---|---|---|
|
| The identity of the device that sent the command. |
|
| The argument packet for the command handler. |
|
| The cancellation token that can be used to cancel the command execution. |