Closed doudasek closed 8 years ago
What is happening is that you are listening to iBeacon packets that are interleaved with main Nearable packets. Since stickers are rotating MAC addresses (clearly seen on log above), scanner recognizes them as several different devices. If you move the device, it will advertise those packets more frequently. You can find more information here: http://developer.estimote.com/nearables/stickers-vs-beacons/
If you wish to have only one device returned you should listen for Nearables using following code:
mBeaconManager.setNearableListener(new BeaconManager.NearableListener() {
@Override
public void onNearablesDiscovered(List<Nearable> list) {
}
});
mBeaconManager.startNearableDiscovery();
(See https://github.com/Estimote/Android-SDK#quick-start-for-nearables-discovery) Stickers will be differentiated using their unique identifier, not a MAC address and there will be no duplicates returned by listener.
BTW. Those packets contain much more information like:
Thank you!
Hi,
I'm just testing stickers with new Android SDK v0.10.0 (happened even in v0.9.4). If I start ranging with specified UUID and major, it returns duplicates time to time. I've noticed it especially happens when moving with phone or sticker.
Log:
My code:
Sticker info: Operating System - SA1.1.0 Hardware Revision - SB0
The same happens to my friend who use iOS SDK. Where is problem?
Thank you, Martin