Mode server
If you implement a server (autopilot or simulator), register the mode microservice during server device build:
RegisterMode depends on the status-text, command-long, and heartbeat services.
After building, you can get the service and request mode changes:
IModeServer
Property | Type | Description |
|---|---|---|
|
| Is server busy. |
|
| Supported modes on this server. |
|
| Current active work-mode handler. |
Method | Return Type | Description |
|---|---|---|
|
| Requests a mode change on the server; optional callback allows configuring the handler. |
IModeServer.SetMode
Parameter | Type | Description |
|---|---|---|
|
| Target mode to apply. |
|
| Optional callback invoked with the |
|
| Optional cancellation token. |
IWorkModeHandler
Represents the runtime handler associated with a custom mode.
Property | Type | Description |
|---|---|---|
|
| Mode represented by this handler. |
Method | Return Type | Description |
|---|---|---|
|
| Initializes the handler when entering mode. |
|
| Destroys the handler when leaving mode. |
|
| Releases resources owned by the handler. |