Store the OpenBCI process ID in returned by /api/openbci/start in the frontend's Redux store. Then, use this process_id to call /api/openbci/stop/. This requires modifying the backend /api/openbci/stop/ route to take a path parameter, e.g. /api/openbci/stop/<string:process_id>/. This will allow us to have multiple frontends connected at the same time and each will be able to spawn a separate openbci process to collect data.
Store the OpenBCI process ID in returned by
/api/openbci/start
in the frontend's Redux store. Then, use this process_id to call/api/openbci/stop/
. This requires modifying the backend/api/openbci/stop/
route to take apath
parameter, e.g./api/openbci/stop/<string:process_id>/
. This will allow us to have multiple frontends connected at the same time and each will be able to spawn a separate openbci process to collect data.