Code Monkey home page Code Monkey logo

Comments (8)

recoverrelax avatar recoverrelax commented on July 30, 2024 3

Yes Please support api 21+. The improvements on the api are so great, it will be a waste not to use the earlier APIs. I can tell you, devices >21, little to few able problems using the new API. The older API on the other hand ..

from rxandroidble.

dariuszseweryn avatar dariuszseweryn commented on July 30, 2024

We are aware of the new scanning API. Thank you for showing your approach - we will check it.
Personally I was thinking about more universal approach in the API and just omit the settings that are unavailable on API < 21.

from rxandroidble.

uKL avatar uKL commented on July 30, 2024

Or maybe we could backport some of them... Worth considering.

from rxandroidble.

mzgreen avatar mzgreen commented on July 30, 2024

I agree, we could try to backport as much as we can but for now we should call new API methods on Lollipop and above and fallback to old one's on previous versions of Android.

from rxandroidble.

aldoborrero avatar aldoborrero commented on July 30, 2024

Why not to use the Android BLE Scanner Compat that NordicSemi has?

It allows you to abstract like the official android compat libraries does. The license is BSD clause 3 so it doesn't have to suppose a problem to use its codebase.

from rxandroidble.

cpboyd avatar cpboyd commented on July 30, 2024

I would at least be interested to invert the exclusivity of the service UUID filter, so that I could find different devices with specific UUIDs that are contained in the list.

e.g.:

    private boolean containsDesiredServiceIds(byte[] scanRecord) {
        List<UUID> advertisedUUIDs = uuidUtil.extractUUIDs(scanRecord);

        for (UUID desiredUUID : filterServiceUUIDs) {

            if (advertisedUUIDs.contains(desiredUUID)) {
                return true;
            }
        }

        return false;
    }

from rxandroidble.

bobroalexandr avatar bobroalexandr commented on July 30, 2024

@uKL @dariuszseweryn I've created pull request for ble scan v21 support #74. Please check if that's helpful for your project

from rxandroidble.

dariuszseweryn avatar dariuszseweryn commented on July 30, 2024

Just added the new scanning API to 1.3.0-SNAPSHOT. Feel free to check it out.

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.