Using the Library
General Overview
1. Include Necessary Headers
#include "CommandDispatcher.h"
#include <iostream>2. Define Response Handler
void printCommandResponse(const CommandResponse& cr, const std::string& action);3. Initialize the Dispatcher
CommandDispatcher dispatcher("BinhoNova"); // For connecting with the Binho Nova host adapter
CommandDispatcher dispatcher("BinhoSupernova"); // For connecting with the Binho Supernova host adapter4. Start the Dispatcher
5. Invoke Commands
6. Wait for All Commands to Finish (Recommended)
7. Stop the Dispatcher
Last updated