Android-BLE-Library icon indicating copy to clipboard operation
Android-BLE-Library copied to clipboard

The error "TOO MANY OPEN CONNECTIONS" is returned in onDeviceFailedToConnect

Open LuoPeiQin opened this issue 8 months ago • 3 comments

Reproduction environment: Phone: Google Pixel 6 (other Google phones should be the same) Android version: Android 14

Reproduction steps: Method One:

  1. Connect to a Bluetooth device and disconnect after ten seconds;
  2. Wait ten seconds and then reconnect to this Bluetooth device, then loop steps 1 and 2;
  3. After repeating steps 1 and 2 about twenty times, the "TOO MANY OPEN CONNECTIONS" message will appear, and at this point, no Bluetooth devices can be connected unless Bluetooth or the App is restarted; Method Two:
  4. Simultaneously connect multiple devices and disconnect after ten seconds;
  5. Reconnect multiple devices and repeat steps 1 and 2;
  6. The issue can be reproduced within about five minutes;

I did not encounter this problem on an OPPO phone with the latest Android 15 system. Could this issue be related to any recent code changes by Google? How should I resolve this issue?

I am eagerly awaiting replies from everyone and the author. Thank you very much.

LuoPeiQin avatar Mar 28 '25 02:03 LuoPeiQin