MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / config_board

Method config_board

cpp_package/src/board_shim.cpp:233–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

231}
232
233std::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
248void BoardShim::config_board_with_bytes (const char *bytes, int len)
249{

Callers

nothing calls this directly

Calls 2

BrainFlowExceptionClass · 0.85
config_boardFunction · 0.50

Tested by

no test coverage detected