-
Notifications
You must be signed in to change notification settings - Fork 85
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
Comments
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. |
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 |
also it would be better for the peripheral to not always use a large mtu size to save power |
Would be great to init the plugin without it automatically requesting a large MTU. |
@pwespi We also need to control the MTU size for different BLE versions of phones and bluetooth devices.Thank you! |
Any updates? |
A pull request implementing this would very much be welcome! |
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
The text was updated successfully, but these errors were encountered: