Using the Library
Last updated
Last updated
Using the Binho Mission Control C++ SDK library typically involves a series of steps to communicate with a target connected to the host adapter, execute commands and handle responses. Command requests and responses follow the Bridge API v1, which can be found at .
Bellow is a high-level overview based on the provided example applications:
Include the necessary headers to access library's functionality:
Define a function to handle responses from the commands sent to the target adapter. This function is responsible for displaying relevant information about the command's execution.
Create an instance of CommandDispatcher
and specify the name of the target host adapter:
Note: The argument passed to the CommandDispatcher
initializer is the name of the target host adapter.
Before sending any commands, start the dispatcher:
With the dispatcher running, invoke commands as needed:
Synchronous Commands (waits for the command to finish before moving on):
Asynchronous Commands (doesn't wait for the command to finish):
To ensure all issued commands are finished before proceeding:
Once all tasks are completed, stop the dispatcher: