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

new method RequestMtuAsync for Android doesnt work #419

Open
polipo opened this issue Jun 10, 2024 · 0 comments
Open

new method RequestMtuAsync for Android doesnt work #419

polipo opened this issue Jun 10, 2024 · 0 comments

Comments

@polipo
Copy link
Contributor

polipo commented Jun 10, 2024

The new method on last realease of Inthehand.BluetoothLe 4.0.36 for Android

the call:
bool status = deviceLE.Gatt.RequestMtuAsync(247).GetAwaiter().GetResult(); //result ok but if doens affect

seems to be work in logcat the output says status = 0 MTU = 247
but it doesnt affect!
This bug is present only if device MTU is == 0 in [device].Gatt.Mtu and only for Android device

I'm revert my code on last my modification and its works
var result = Task.Run(() => ((Android.Bluetooth.BluetoothGatt)_deviceLE.Gatt).RequestMtu(247)).GetAwaiter();
status = result.GetResult();
This works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants