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

Method config_board

src/board_controller/bt_lib_board.cpp:125–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125int BTLibBoard::config_board (std::string config, std::string &response)
126{
127 int res = bluetooth_write_data (config.c_str (), (int)strlen (config.c_str ()));
128 if (res != (int)strlen (config.c_str ()))
129 {
130 safe_logger (spdlog::level::err, "failed to config device, res: {}", res);
131 return (int)BrainFlowExitCodes::BOARD_WRITE_ERROR;
132 }
133 return (int)BrainFlowExitCodes::STATUS_OK;
134}
135
136int BTLibBoard::bluetooth_open_device ()
137{

Callers

nothing calls this directly

Calls 1

bluetooth_write_dataFunction · 0.85

Tested by

no test coverage detected