Skip to content
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

Reconnect after connection loss #558

Open
TannerGilbert opened this issue Jan 13, 2021 · 0 comments · May be fixed by #651
Open

Reconnect after connection loss #558

TannerGilbert opened this issue Jan 13, 2021 · 0 comments · May be fixed by #651

Comments

@TannerGilbert
Copy link

I'm working on a project with multiple microcontrollers that communicate with a PC over Serial. I want my script to automatically recognize when a connection is lost to one of the microcontrollers and try to reconnect to the controller. I'd be thankful if you can give me some suggestions on how to best implement this functionality.

belm0 added a commit to belm0/pyserial that referenced this issue May 15, 2022
  * --reconnect option will silently retry (on the initially
    connected port)

  * exit with code 1 when there is an error

Fixes pyserial#558
@belm0 belm0 linked a pull request May 15, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant