| 123 | } |
| 124 | |
| 125 | int 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 | |
| 136 | int BTLibBoard::bluetooth_open_device () |
| 137 | { |
nothing calls this directly
no test coverage detected