openbci-archive/OpenBCI_NodeJS

Allow to Connect without Resetting

Opened this issue · 1 comments

It would be nice to connect to the device without having to reset it, for command-line utilities that just perform one function, and to maintain a long-term SD log without interruption.

I began this in #82, but it turns out a lot of subtle issues with the library obstruct testing. I will likely withdraw #82 and submit a new pull request that is rebased on a more recent commit, while adding the dependent issues to the issue tracker.

  • Address all dependent issues (at least #93 and #92)
  • Optionally separate the simulator from the connect/disconnect cycle, so it has its own lifetime
  • Provide an option flag determining whether the connection owns or manages the lifetime of the board, defaulting to false. If set to true, the board will be reset when connected, and streaming will be halted when disconnected.
  • Test for all combinations of this flag with the connect / disconnect functions, and any other relevant combinations introduced.

@baffo32 please rebase off master and continue developing!

Please checkout the latest release: https://github.com/OpenBCI/OpenBCI_NodeJS/releases/tag/v1.3.3

Ignore 1.4.0 semi-standard adoption until we figure out the best was to handle it. I think this issue should be addressed and closed so we can do #50