Coder Social home page Coder Social logo

Comments (2)

davidgyoung avatar davidgyoung commented on July 17, 2024

HI, Shikimaru.

The simple answer to the question is to change at least one of your identifiers on one of your iBeacons -- iBeacons are designed so the three part identifier must be unique. The library is doing what it is supposed to do by treating these as a single iBeacon. However, I am guessing that there is some reason you can't do this for your use case, otherwise you would have done it already.

If you really must have the library report these as two different iBeacons, then you might fork the code and modify it to use the bluetooth Mac address instead of the UUID/major/minor combo to determine a unique iBeacon. To do this, you would have to modify the class below to (a) track the mac address, and (b) re-implement the equals method of this class to consider two iBeacons as the same only if they have the same mac address.

https://github.com/RadiusNetworks/android-ibeacon-service/blob/master/src/main/java/com/radiusnetworks/ibeacon/IBeacon.java

I am reluctant to make this change to the main library because other use cases may reasonably expect that only a single iBeacon UUID/major/minor combo could be detected at the same time, and I would not want to break existing code that expects this.

Thanks,
David

from android-ibeacon-service.

davidgyoung avatar davidgyoung commented on July 17, 2024

Closing this issue. Please reopen if you need a better solution than proposed. Thanks, David

from android-ibeacon-service.

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.