Auto-disconnection in some Android devices
Prerequisites
- [X] I checked the documentation and FAQ without finding a solution
- [X] I checked to make sure that this issue has not already been filed
Expected Behavior
Maintain the connection
Current Behavior
Devices disconnect after some seconds
Library version
3.2.0
Device
Samsung s22 ultra, Pixel, ..
Environment info
-
Steps to reproduce
Formatted code sample or link to a repository
-
Relevant log output
-
Additional information
Hi @intent-kacper-cyranowski !
As you said to me, I have opened a new issue. I am attaching the logs you asked me in https://github.com/dotintent/react-native-ble-plx/issues/1197#issuecomment-2204467303
EXPECTED BEHAVIOUR: the app connects to the device and ask for his state until the user closes the BLE connection manually
BAD BEHAVIOUR: the app connects to the device and ask for his state but connection drops
Hi @joanmarcs
We have opened a ticket for your issue. I would like to clarify some information. Did the error occurred on different devices then previously specified? Samsung and Pixel have their own SoC, and if error occurs only there it might be the cause. You have mentioned that you are working with vehicle chargers, can you specify what is the device, or can you provide any other device on which you were able to reproduce the issue.
Everything that will help in reproducing and solving the issue is welcome.
Hi @intent-kacper-cyranowski
We have only observed this in this brands as far as I know... I have a POCO that works fine, the same in QA team. A Nothing one also works fine. The vehicle chargers are using an ESP32.
Also observed with an ESP32 device. Version 3.1.2
I get event disconnect after connect around 10-15 seconds, It's crazy, The app try to connect again and again, it is the same
I can confirm this same issue, using PLX version 3.2.1, Google Pixel 9 connected to an ESP32 device, occurs exactly at 30 seconds.
+1 @nhaduongc same here. Every few seconds, Android drops connection, reconnects, then drops connection again.
Solved with this workaround: https://github.com/dotintent/react-native-ble-plx/issues/1197#issuecomment-2256601221