API feature to close/release all connections or clean the cached devices
See original GitHub issueIs your feature request related to a problem? Please describe. I’m using the library to scan and read some characteristics from other phones while everything is working perfect with relatively new phones with android 8 or higher, old phones with android 7 are failing to close the connections and after couple of hours they are ending up in status 133:
com.polidea.rxandroidble2.exceptions.BleDisconnectedException: Disconnected from MAC='XX:XX:XX:XX:XX:XX' with status 133 (GATT_ERROR)
and they are not able to scan until the device is rebooted.
This might be a bug in my code or the library, but since new phones are working flawlessly. i suspect it is related to android os.
Describe the solution you’d like Would it be possible to kill the connections and release them using an api call in the library? Or If this is caching related issue, to clean cached devices, via this library ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:22 (10 by maintainers)
Top GitHub Comments
Though it seems to be quite away from the original topic — that is some interesting idea. I will extract it as a separate issue. I have quite a lot on my stack now and definitely not enough time unfortunately.
So to get back to the point, would it be possible to produce a warning before those version specific thresholds were reached? I can help testing and perhaps have some code to contribute. Also need to reiterate this is not an rxandroidble issue but could make it a killer feature.