简体   繁体   中英

Data receiving from Bluetooth Low Energy device in android is very slow

I am working on one android application which is based on BLE Fitness band.we have 3 type of fitness band.data receiving from band is proper but one issue that receiving data from one ble device taking to much time in seconds.and other two bands are working properly and receiving data quickly from that band.if i check that band with another app which is in play store its receiving data very quickly so there is no issue of band.so please can anyone knows how to solve this issue which method of ble is required? how to write code for that or can any one knows any link to solve this problem?

You can try to increase the MTU by requesting a bigger one: https://developer.android.com/reference/android/bluetooth/BluetoothGatt.html#requestMtu(int)

However this API was introduced with Android 5.0 and you need to check the OS version before calling it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM