| 231 | } |
| 232 | |
| 233 | std::string BoardShim::config_board (std::string config) |
| 234 | { |
| 235 | int response_len = 0; |
| 236 | char response[8192]; |
| 237 | int res = ::config_board ( |
| 238 | config.c_str (), response, &response_len, sizeof (response), board_id, |
| 239 | serialized_params.c_str ()); |
| 240 | if (res != (int)BrainFlowExitCodes::STATUS_OK) |
| 241 | { |
| 242 | throw BrainFlowException ("failed to config board", res); |
| 243 | } |
| 244 | std::string resp ((const char *)response, response_len); |
| 245 | return resp; |
| 246 | } |
| 247 | |
| 248 | void BoardShim::config_board_with_bytes (const char *bytes, int len) |
| 249 | { |
nothing calls this directly
no test coverage detected