Base remote control service API | Service APIs
Base remote control service API
The base remote control service API allows you to get a list of inputs from the controller that are being monitored for that control mode.
The Base remote control service supports the following methods:
| Method Name | Description |
|---|---|
ControllerInputs |
Get a list of inputs from the controller that are being monitored for that control mode. |
Reconfigure |
Reconfigure this resource. |
DoCommand |
Execute model-specific commands that are not otherwise defined by the service API. |
GetResourceName |
Get the ResourceName for this instance of the generic service with the given name. |
Close |
Close out of all remote control related systems. |
API
ControllerInputs
Get a list of inputs from the controller that are being monitored for that control mode.
Parameters:
- None.
Returns:
- (input.Control): A list of inputs from the controller that are being monitored for that control mode.
Example:
For more information, see the Go SDK Docs.
Reconfigure
Reconfigure this resource. Reconfigure must reconfigure the resource atomically and in place.
Parameters:
ctx(Context): A Context carries a deadline, a cancellation signal, and other values across API boundaries.deps(Dependencies): The resource dependencies.conf(Config): The resource configuration.
Returns:
- (error): An error, if one occurred.
For more information, see the Go SDK Docs.
DoCommand
Execute model-specific commands that are not otherwise defined by the service API.
Most models do not implement DoCommand.
Any available model-specific commands should be covered in the model’s documentation.
If you are implementing your own base remote control service and want to add features that have no corresponding built-in API method, you can implement them with DoCommand.
Parameters:
ctx(Context): A Context carries a deadline, a cancellation signal, and other values across API boundaries.cmd(map[string]interface{}): The command to execute.
Returns:
- (map[string]interface{}): The command response.
- (error): An error, if one occurred.
Example:
For more information, see the Go SDK Docs.
GetResourceName
Get the ResourceName for this instance of the generic service with the given name.
Parameters:
- None.
Returns:
Example:
For more information, see the Go SDK Docs.
Close
Close out of all remote control related systems.
Parameters:
ctx(Context): A Context carries a deadline, a cancellation signal, and other values across API boundaries.
Returns:
- (error): An error, if one occurred.
Example:
For more information, see the Go SDK Docs.