NTX-McGill / NeuroTechX-McGill-2021

Other
16 stars 5 forks source link

Software: Store OpenBCI process ID in frontend's Redux store. #62

Closed mlej8 closed 3 years ago

mlej8 commented 3 years ago

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.