fasteddy516 / SimplySerial

A windows console application for serial communications.
MIT License
193 stars 23 forks source link

Allow automatic re-connection #1

Closed fasteddy516 closed 5 years ago

fasteddy516 commented 5 years ago

Right now, if the active COM port connection drops (i.e. CircuitPython device gets disconnected, etc.), SimplySerial will stop gracefully on a System.IOException error.

Ideally, SimplySerial could keep track of the specified COM port, and - if it re-appears (i.e. CircuitPython device gets re-connected), it would automatically restart the serial session.

fasteddy516 commented 5 years ago

As an addition to this, in situations where there are no available com ports, SimplySerial could wait for one to appear, then automatically connect with the specified (or default) parameters.

fasteddy516 commented 5 years ago

This was added in commit fa65b51a416f022f149645b4528ceba94e5883de, forgot to auto-close it.