Giter VIP home page Giter VIP logo

Comments (5)

sivapraka avatar sivapraka commented on August 16, 2024

I have also faced the same issue

from android-ble-library.

philips77 avatar philips77 commented on August 16, 2024

Hi, sorry for the super long delay. Do you still face this issue? Did you try v2 of the BLE library?

from android-ble-library.

hyoungtaikkim avatar hyoungtaikkim commented on August 16, 2024

Hi,

In my case, there was some connection issue in Android 8.0, LG phone with 133 error. So I needed following change and it seemed to be fine for my case.

in BLE manager,

mBluetoothGatt = device.connectGatt(mContext, false, mGattCallback = getGattCallback());

was changed to

mBluetoothGatt = device.connectGatt(mContext, false, mGattCallback = getGattCallback(), 2);

especially for newer OS like Marshmallow or higher.

All in all, it's well designed library and I really appreciate your excellent work.

Thanks.

from android-ble-library.

philips77 avatar philips77 commented on August 16, 2024

The new version of the library uses TRANSPORT_LE for Marshmallow or newer: https://github.com/NordicSemiconductor/Android-BLE-Library/blob/master/ble/src/main/java/no/nordicsemi/android/ble/BleManager.java#L805. Actually, the connectGatt with transport parameter was available before (since KitKat?), but only using reflections.

from android-ble-library.

hyoungtaikkim avatar hyoungtaikkim commented on August 16, 2024

Hi,

Thank you very much for your work again. Anyway I have tried the library 2.0, but there was some connection issue again for Android 8.0, LG phone. Maybe it might have something to do with application which uses the library though. So I have gone back to 1.2 version with the above change I have commented in the above. So no connection problem in my case after that. So I would like to recommend you to test the library 2.0 with Android 8.0 (Oreo).

Thanks again.

from android-ble-library.

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.