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

Method start_stream

src/board_controller/brainalive/brainalive.cpp:209–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209int BrainAlive::start_stream (int buffer_size, const char *streamer_params)
210{
211 if (!initialized)
212 {
213 return (int)BrainFlowExitCodes::BOARD_NOT_CREATED_ERROR;
214 }
215 int res = prepare_for_acquisition (buffer_size, streamer_params);
216
217 if (res == (int)BrainFlowExitCodes::STATUS_OK)
218 {
219 res = config_board ("0a038100000d");
220 }
221 if (res == (int)BrainFlowExitCodes::STATUS_OK)
222 {
223 safe_logger (spdlog::level::debug, "Start command Send 250sps");
224 is_streaming = true;
225 }
226
227 return res;
228}
229
230int BrainAlive::stop_stream ()
231{

Callers

nothing calls this directly

Calls 1

config_boardFunction · 0.50

Tested by

no test coverage detected