lite xu
lite xu

Reputation: 11

How can Android BLE read more than 20 bytes, requestMtu() is not working?

I want to use Android BLE to receive more than 20 bytes one package, but it does not work. So I tried BluetoothGatt.requestMtu(). It returns true, but is not working. I know the MTU exchange request can only be initialized by client, that is an Android phone. I do not understand why this API is not working.
The phone I use is an OnePlus 6 with Android 8.1

Upvotes: 1

Views: 3711

Answers (1)

Quang Nguyen
Quang Nguyen

Reputation: 2660

It is not related to Android framework API. It belongs to Bluetooth BLE specification. Please check more details here. Maximum packet length for Bluetooth LE?

Upvotes: 2

Related Questions