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

Remove obsolete FunctionCode::Disconnect #273

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Conversation

uklotzde
Copy link
Member

Use AsyncWriteExt::shutdown() to release all resources.

/// the underlying transport, e.g. for disconnecting from an
/// exclusively used serial port.
///
/// This is an ugly workaround, because `tokio-proto` does not
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does no longer apply.

@uklotzde
Copy link
Member Author

uklotzde commented Sep 2, 2024

Anyone? I only did a quick test with a USB serial adapter, basically runing the RTU example code in a loop.

Unfortunately, I don't remember the details what didn't work in the past with tokio-proto.

@uklotzde uklotzde added this to the v0.15.0 milestone Sep 11, 2024
@uklotzde uklotzde force-pushed the disconnect branch 4 times, most recently from 7a53b95 to 512f089 Compare September 14, 2024 09:01
Use AsyncWriteExt::shutdown() to release all resources.
@uklotzde
Copy link
Member Author

We should probably merge this PR and wait for reports from users that are already using main. Needs some testing before a release.

@uklotzde uklotzde requested a review from flosse September 17, 2024 15:27
@uklotzde
Copy link
Member Author

Let's give it a try.

@uklotzde uklotzde merged commit f68a4a3 into slowtec:main Sep 18, 2024
10 checks passed
@uklotzde uklotzde deleted the disconnect branch September 18, 2024 22:58
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.

2 participants