RxAndroidBle icon indicating copy to clipboard operation
RxAndroidBle copied to clipboard

Information on reaching OS Bluetooth connection limit

Open dariuszseweryn opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe. Original post.

Describe the solution you'd like It would be awesome if the library would warn the user whenever the OS reaches maximum established Bluetooth connections.

Describe alternatives you've considered Maybe not an alternative but a doubt as maximum Bluetooth connections may vary not only by API level but from vendor to vendor or even from chip manufacturer to another which may decrease usability of such a feature.

Additional context According to this SO post the maximum OS level Bluetooth connections is limited by MAX_L2CAP_LINKS value which is:

dariuszseweryn avatar Jun 08 '20 19:06 dariuszseweryn

@dariuszseweryn that is a good idea however I know from experience that for some Huawei (e.g. P20) and Xaomi devices the threshold is lower( I even saw a Android 9 phone that had issues when connecting more then 6) , so your doubt is indeed justified :). I think a warning with this disclaimer can still be good one or add it to the FAQ.

remonh87 avatar Jul 23 '20 06:07 remonh87

There are two things:

  1. The OS limits
  2. The actual Bluetooth Chip limits — there are numerous Bluetooth Chip manufacturers there and capabilities of the chips and firmwares that those chips run can be widely different. YMMV :(

dariuszseweryn avatar Jul 23 '20 16:07 dariuszseweryn