We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thank you for your work!
You implemented the read loop, that is very helpful.
But in this loop, you catched the case the device is disconnected:
catch (error) { console.error("Read Loop error. Have the serial device been disconnected ? "); }
So there is no way to us to know when this case happends. My proposal is to let an exception comes up or make a callback.
For example:
catch (error) { throw 'Unable to read data from the device'; }
The text was updated successfully, but these errors were encountered:
Merge pull request #2 from dharmeshvash/dharmeshvash-patch-2
7bad2a4
Update package.json
No branches or pull requests
Thank you for your work!
You implemented the read loop, that is very helpful.
But in this loop, you catched the case the device is disconnected:
So there is no way to us to know when this case happends. My proposal is to let an exception comes up or make a callback.
For example:
The text was updated successfully, but these errors were encountered: