Code Monkey home page Code Monkey logo

Comments (4)

dariuszseweryn avatar dariuszseweryn commented on July 30, 2024

Hello,
When connecting with autoConnect flag the RxBleRadioOperationConnect finishes after registering the client. The reason is that with autoConnect flag set to true the connection usually is established quite a lot later even if the device you're trying to connect is near by and advertising. I have seen times even above 10 minutes for connecting where connection with autoConnect = false took 5 seconds.
How long have you waited for the connection to be established?
From the logs I see that calling the connectGatt using reflection finished successfully - there are no errors with that.
Best Regards

from rxandroidble.

lkjh654 avatar lkjh654 commented on July 30, 2024

Hi,
thanks for the prompt response. I've been trying to connect for dozens of minutes without success.

The thing is that autoConnect flag works perfectly fine on the same device when:

  • using android-BluetoothLeGatt sample from Google
  • reflection based method in the library is replaced with the regular API

I know this issue is weird especially because:

  • it happens only on one device among many I have used
  • the reflection based implementation seems to be identical to the inner Android implementation

Anyways I've changed my app implementation so that autoConnect=false but still it would be cool if you could address the last part of my comment regarding why the reflection based workaround is used in the first place and which Android versions / devices are affected.

thanks.

from rxandroidble.

wickedpygmy avatar wickedpygmy commented on July 30, 2024

Reflection workaround is used to fix this bug:
https://code.google.com/p/android/issues/detail?id=69834
Which affects the majority of Android devices, as it has only been fixed very recently.

from rxandroidble.

dariuszseweryn avatar dariuszseweryn commented on July 30, 2024

Since I do not own nor I do have access to the said model I do not think this issue will get tested/fixed. Closing.

from rxandroidble.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.