GithubHelp home page GithubHelp logo

Comments (11)

johnnyzen avatar johnnyzen commented on June 14, 2024

an area of interest, for example, a garden.

from android-fleet-management-sdk.

wiktor avatar wiktor commented on June 14, 2024

It represents region defined by one or more beacons.

You can monitor more than one beacon at a time. For example you can monitor:

  1. uuid set (XXXX-...-XXXX), major set (like 1234), minor set to null which means any minor number
  2. note that you can invoke BeaconManager#startMonitoring(Region) couple of times for different regions

from android-fleet-management-sdk.

LarryLan avatar LarryLan commented on June 14, 2024

thanks wiktor.

  1. uuid set (XXXX-...-XXXX), major set (like 1234), minor set to null which means any minor number
    basically the major, minor and UUID are filters that filters the beacons detected, therefore to define a generic region I need to
    Region ALL_ESTIMOTE_BEACONS_REGION = new Region("rid", null, null, null);
    and then bind it to the beaconManager by using startMonitoring method.
    Then I can get MonitoringListener will be invoked multiple times as a beacon enter or leave the region.

does that make sense to you?

from android-fleet-management-sdk.

wiktor avatar wiktor commented on June 14, 2024

Correct. Yes, think of them as filters.

Note that generic region like new Region("rid", null, null, null); will not trigger onExitedRegion for first beacon (that is not visible) when other beacon is visible. This is happening since you are still in the defined region.

from android-fleet-management-sdk.

LarryLan avatar LarryLan commented on June 14, 2024

thanks again wiktor. one more question is:
when there's a beacon comes into region, the monitoringListener callback is invoked with a region parameter which is the generic one I defined.
the UUID/major/minor is null.

actually, what I want to know here is the beacon's characteristic information.

How can I achieve that?

from android-fleet-management-sdk.

raarlac avatar raarlac commented on June 14, 2024

I want to know this too.
I have a database with beacons ID and notification messages for each beacon. Once I enter on a region, I want to know the beacon ID to relate to it's notification message. Also, I can't use ranging method, once this task is running on background.

from android-fleet-management-sdk.

wiktor avatar wiktor commented on June 14, 2024

You would need to start ranging if you would want to know beacon's characteristics.

Although from feedback I can see that you would like to know in monitoringListener that you entered region and to know which beacons seen had invoked this actions.

Something like: onEnteredRegion(Region region, List foundBeacons) where foundBeacons could be not complete list of beacons that could be visible by ranging since you this event needs to be triggered as early as possible.

from android-fleet-management-sdk.

raarlac avatar raarlac commented on June 14, 2024

Wiktor, thank you for the reply.
Yes, I was thinking about something like the function you stated.
Also, by enabling the debugger of the beacon api I noticed that the monitoringlistener have access to an address (I think is MAC adress, since it logs like XX:XX:XX:XX). So, if its not possible to send the beacon list in the onEnteredRegion method, would it be possible to pass this MAC addresses of the beacons connected?

from android-fleet-management-sdk.

wiktor avatar wiktor commented on June 14, 2024

In the beacon list it would be Beacon object so MAC, UUID, major, minor
would be available.

On Wed, Jan 29, 2014 at 3:18 PM, raarlac [email protected] wrote:

Wiktor, thank you for the reply.
Yes, I was thinking about something like the function you stated.
Also, by enabling the debugger of the beacon api I noticed that the
monitoringlistener have access to an address (I think is MAC adress, since
it logs like XX:XX:XX:XX). So, if its not possible to send the beacon list
in the onEnteredRegion method, would it be possible to pass this MAC
addresses of the beacons connected?


Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-33587758
.

from android-fleet-management-sdk.

raarlac avatar raarlac commented on June 14, 2024

That would be awesome. I'm looking forward to it.

from android-fleet-management-sdk.

wiktor avatar wiktor commented on June 14, 2024

Tracking issue is here: #18

from android-fleet-management-sdk.

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.