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

Fault-tolerant outstation serial task #215

Merged
merged 5 commits into from
Aug 31, 2022
Merged

Conversation

jadamcrain
Copy link
Member

The existing outstation serial task tries to open the serial port during creation, and fails if the port isn't available. The task will also exit if the serial port disappears during execution. It is possible for serial ports to come and go for example with USB to serial converters... I'm sure there are other cases too.

This PR adds additional methods for spawning serial outstations that control the port on the background task. They are "self-healing" and retry opening the port at a configurable rate.

The old methods still exist for API backwards compatibility in the 1.x release series, but will probably be removed once we eventually do a 2.0 release.

@jadamcrain jadamcrain merged commit c478781 into main Aug 31, 2022
@jadamcrain jadamcrain deleted the feature/fault-tolerant-serial branch August 31, 2022 20:38
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 this pull request may close these issues.

1 participant