-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
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
ReadIOCompletion error closes port after flush on Windows #1409
Comments
I have same issue... upon @reconbot This is friendly question; Is there any progress on this issue :) |
Also seeing this issue. Currently, it is important (though not completely a blocking issue) that I flush the buffers before each write during a real-time writeLine-readLine loop where each, last command may fail to respond and could corrupt the next command, and clearing the buffers before each write greatly reduces the chances of corrupted data. I'll be commenting out my flush() call for now and keeping an eye on the roadmap for the bug-fix, hopefully it will be soon :) |
Any update on progress fixing this issue? |
It needs a champion. |
Summary of Problem
Calling
serialPort.flush
on Windows causes theReading from COM port (ReadIOCompletion): Operation aborted
error if the port is currently listening which leads to_disconnect
being called and the port being closed.The same code works on Linux with serialport 6. It also works on Windows with serialport 4.
I ran into this issue upgrading the Particle CLI to serialport 6.
Steps and Code to Reproduce the Issue
The text was updated successfully, but these errors were encountered: