Android-BLE-Library
Android-BLE-Library copied to clipboard
The error "TOO MANY OPEN CONNECTIONS" is returned in onDeviceFailedToConnect
Reproduction environment: Phone: Google Pixel 6 (other Google phones should be the same) Android version: Android 14
Reproduction steps: Method One:
- Connect to a Bluetooth device and disconnect after ten seconds;
- Wait ten seconds and then reconnect to this Bluetooth device, then loop steps 1 and 2;
- 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:
- Simultaneously connect multiple devices and disconnect after ten seconds;
- Reconnect multiple devices and repeat steps 1 and 2;
- 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.