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

Method stop_stream

src/board_controller/mentalab/explore.cpp:217–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215}
216
217int Explore::stop_stream ()
218{
219 if (keep_alive)
220 {
221 keep_alive = false;
222 streaming_thread.join ();
223 state = (int)BrainFlowExitCodes::SYNC_TIMEOUT_ERROR;
224 last_eeg_timestamp = -1.0;
225 return bluetooth_close_device ();
226 }
227 else
228 {
229 return (int)BrainFlowExitCodes::STREAM_THREAD_IS_NOT_RUNNING;
230 }
231}
232
233int Explore::release_session ()
234{

Callers

nothing calls this directly

Calls 1

bluetooth_close_deviceFunction · 0.85

Tested by

no test coverage detected