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

Function add_streamer

src/board_controller/board_controller.cpp:575–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573}
574
575int add_streamer (
576 const char *streamer, int preset, int board_id, const char *json_brainflow_input_params)
577{
578 std::lock_guard<std::mutex> lock (mutex);
579 if (streamer == NULL)
580 {
581 return (int)BrainFlowExitCodes::INVALID_ARGUMENTS_ERROR;
582 }
583
584 std::pair<int, struct BrainFlowInputParams> key;
585 int res = check_board_session (board_id, json_brainflow_input_params, key, false);
586 if (res != (int)BrainFlowExitCodes::STATUS_OK)
587 {
588 return res;
589 }
590 auto board_it = boards.find (key);
591 return board_it->second->add_streamer (streamer, preset);
592}
593
594static int copy_string_to_buffer (
595 const std::string &source, char *destination, int *destination_len, int max_len)

Callers 3

add_streamerMethod · 0.85
add_streamerMethod · 0.85

Calls 2

check_board_sessionFunction · 0.85
add_streamerMethod · 0.65

Tested by

no test coverage detected