| 170 | } |
| 171 | |
| 172 | int Callibri::stop_stream () |
| 173 | { |
| 174 | if (is_streaming) |
| 175 | { |
| 176 | keep_alive = false; |
| 177 | is_streaming = false; |
| 178 | streaming_thread.join (); |
| 179 | std::string command_stop = "CommandStopSignal"; |
| 180 | std::string tmp = ""; |
| 181 | int res = config_board (command_stop, tmp); |
| 182 | return res; |
| 183 | } |
| 184 | else |
| 185 | { |
| 186 | return (int)BrainFlowExitCodes::STREAM_THREAD_IS_NOT_RUNNING; |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | int Callibri::release_session () |
| 191 | { |
nothing calls this directly
no test coverage detected