You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.
This however doesn't solve the problem of connect(portName) being called before the constructor has resolved the port in the constructor's call to the init() function. Since a constructor doesn't return a promise, I don't know if we can await it. However, if I just resign to auto-discover the port a second time, I can await on that.
This is my code that can successfully connect to my Cyton board and stream data:
I'm trying to run the Cyton example code and I'm getting a "No path specified" exception
Here's the code that I'm using:
Inside
new Cyton()
, the init function callsautoFindOpenBCIBoard()
, which tries to find a valid serial port. If successful, it ends with this code:However, this doesn't block the call to
await cyton.connect();
which tries to connect toportName
which is undefined.The text was updated successfully, but these errors were encountered: