I'm implementing BLE in Xamarin forms where I'm trying to send data larger than 20 bytes. So I used
await _device.RequestMtuAsync(512);
It works in my Redmi Note 8 device but some devices like Samsung and Honor it fails. I went through some native android solutions so there they are trying to do this operation in loop as you can see in this link. I want to implement same thing in Xamarin forms but I don't have any clue how to implement this in c# code any suggestions?