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 requesMTU for android #541

Open
wm-eisos opened this issue May 16, 2023 · 7 comments
Open

Add requesMTU for android #541

wm-eisos opened this issue May 16, 2023 · 7 comments
Labels
enhancement New feature or request

Comments

@wm-eisos
Copy link

Is your feature request related to a problem? Please describe.

Since android api 21, the device cam request MTU size using this function

public boolean requestMtu (int mtu)

i saw that you recently added the ability to read the mtu size so it would also be good to be able to request a size

@wm-eisos wm-eisos added the enhancement New feature or request label May 16, 2023
@pwespi
Copy link
Member

pwespi commented May 18, 2023

May I ask, what is your use case for this? Do you need a specific number for the MTU?

On Android, the plugin already automatically requests a large MTU. On iOS, this is done by the OS and there is no API to change the MTU, as far as I know.

@wm-eisos
Copy link
Author

For me it would be useful since the app im writing is for developers to connect to a bluetooth wireless module so it would be nice to have tem control everything also i dont think it would be very hard to implement this and you are correct this is only available in android

@wm-eisos
Copy link
Author

also it would be better for the peripheral to not always use a large mtu size to save power

@medfx
Copy link

medfx commented Dec 12, 2023

On Android, the plugin already automatically requests a large MTU. On iOS, this is done by the OS and there is no API to change the MTU, as far as I know.

Would be great to init the plugin without it automatically requesting a large MTU.

@tiandongmao
Copy link

@pwespi We also need to control the MTU size for different BLE versions of phones and bluetooth devices.Thank you!

@HyperLife1119
Copy link

Any updates?

@peitschie
Copy link
Collaborator

Hi @HyperLife1119

A pull request implementing this would very much be welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants