| 364 | } |
| 365 | |
| 366 | int stop_stream (int board_id, const char *json_brainflow_input_params) |
| 367 | { |
| 368 | std::lock_guard<std::mutex> lock (mutex); |
| 369 | |
| 370 | std::pair<int, struct BrainFlowInputParams> key; |
| 371 | int res = check_board_session (board_id, json_brainflow_input_params, key, false); |
| 372 | if (res != (int)BrainFlowExitCodes::STATUS_OK) |
| 373 | { |
| 374 | return res; |
| 375 | } |
| 376 | auto board_it = boards.find (key); |
| 377 | return board_it->second->stop_stream (); |
| 378 | } |
| 379 | |
| 380 | int insert_marker (double value, int preset, int board_id, const char *json_brainflow_input_params) |
| 381 | { |
no test coverage detected