Hello,
If you mean the MTU size of android device. For Android phones, MTU size is default (23 bytes) and couldn't be changed.
If you mean the Bluetooth MTU size in Android, you can refer to requestMtu to get more details.
The following simple code shows how to use it in Xamarin:
public void setMTU(BluetoothGatt gatt, GattStatus status)
{
if (status == Android.Bluetooth.GattStatus.Success)
{
//requestPriorityHigh();
gatt.RequestMtu(182);
// etc.
}
}
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.