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

Method stop_stream

src/board_controller/emotibit/emotibit.cpp:130–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130int Emotibit::stop_stream ()
131{
132 if (keep_alive)
133 {
134 if (send_control_msg (MODE_LOW_POWER) != (int)BrainFlowExitCodes::STATUS_OK)
135 {
136 safe_logger (spdlog::level::warn, "failed to set low power mode");
137 }
138 keep_alive = false;
139 streaming_thread.join ();
140 return (int)BrainFlowExitCodes::STATUS_OK;
141 }
142 return (int)BrainFlowExitCodes::STREAM_THREAD_IS_NOT_RUNNING;
143}
144
145int Emotibit::release_session ()
146{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected