Page 1 of 1

Android BLE MTU Size

Posted: 08:40, 06 Mar 2016
by Ehsan4859
Hi.
I am using Evothings to make an ble App. and I need to transfer 100 bytes using BLE. How can I change "MTU Size" in my JavaScript code.
Tha

Re: Android BLE MTU Size

Posted: 16:05, 06 Mar 2016
by Fredrik
The Maximum Transmission Unit in BLE/GATT is 20 bytes. This is determined by the official Bluetooth specification and cannot be changed.

To transfer 100 bytes, you will have to make 5 sequential transfers of 20 bytes each.

Re: Android BLE MTU Size

Posted: 06:46, 07 Mar 2016
by Ehsan4859
yes I know. but if you change the MTU size of Central(for example Phone), you can send several packets on each "Connection Event".
I need to know how can I change MTU size of Android BLE in "Evothings". thanks.

Re: Android BLE MTU Size

Posted: 07:52, 07 Mar 2016
by Fredrik
I see, you're talking about the function BluetoothGatt.requestMtu(). It is not exposed by the Evothings BLE plugin, so changing MTU size will not be possible.