RxAndroidBle can connect to peripheral but standard Android can't

此生再无相见时 提交于 2019-12-14 03:13:19

问题


Hoping that the experts might have a tip: I've inherited some code that uses the Android BLE API. It works OK with most devices, but will not connect to one, a blood pressure monitor. I wrote a quick test app using RxAndroidBle that connects fine as long as autoConnect is true. If it's false, I get an "already connected" error. With autoConnect true, I get the same error but after a few seconds it corrects itself and connects, then works as expected.

With the legacy code, the call to connect the device fails immediately with a DISCONNECTED state and a generic GATT_ERROR (status 0x85). This happens whether autoConnect is on or off.

Does this suggest any possible solution? (Unfortunately, rewriting the app isn't an option in the short term.) There's more info here:

来源:https://stackoverflow.com/questions/50243766/rxandroidble-can-connect-to-peripheral-but-standard-android-cant

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!