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

Add hack for getting MTU on BlueZ backend. #543

Merged
merged 1 commit into from
May 24, 2021

Conversation

dlech
Copy link
Collaborator

@dlech dlech commented May 19, 2021

BlueZ doesn't have a good way to get the negotiated MTU, but we can get it by abusing existing D-Bus methods.

Since the workaround is async and could cause unwanted side effects for some devices, it opt-in as seen in the example code.

@dlech
Copy link
Collaborator Author

dlech commented May 19, 2021

FYI, @es617.

@dlech dlech force-pushed the feature/bluez-mtu branch 2 times, most recently from b241826 to 603471c Compare May 19, 2021 22:13
bleak/backends/bluezdbus/client.py Outdated Show resolved Hide resolved
bleak/backends/bluezdbus/client.py Show resolved Hide resolved
BlueZ doesn't have a good way to get the negotiated MTU, but we can get
it by abusing existing D-Bus methods.

Since the workaround is async and could cause unwanted side effects for
some devices, it opt-in as seen in the example code.
@dlech dlech force-pushed the feature/bluez-mtu branch from 603471c to 5b090c0 Compare May 21, 2021 20:47
@es617
Copy link
Contributor

es617 commented May 24, 2021

looks good to me!

@dlech dlech merged commit ce63ed4 into hbldh:develop May 24, 2021
@dlech dlech deleted the feature/bluez-mtu branch May 24, 2021 18:58
@dlech
Copy link
Collaborator Author

dlech commented May 24, 2021

Thanks for the review!

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