kontaktio / kontakt-android-sdk

The repository contains prebuilt artifacts ready to be included to project manually. If you develop with Android Studio please check our docs website.
http://developer.kontakt.io
68 stars 16 forks source link

Device found but not recognized as Beacon #118

Closed drstranges closed 8 years ago

drstranges commented 8 years ago

I'm getting some strange logcat: D/kontakt.io SDK: Device found but not recognized as Beacon [name: Kontakt, address: XX:XX:XX:XX:XX:XX]. Howewer, beacons are discovered from time to time.

michaldrabik commented 8 years ago

@drstranges What is your SDK version?

drstranges commented 8 years ago

Kontakt SDK 3.1.0, Android 5.1

michaldrabik commented 8 years ago

@drstranges You probably don't need to worry about this. This is a general message that is thrown when scanned beacon frame is not consider "valid" for some reason (it can be due to malformed broadcast, or set up filtering). We should probably change text of this log to be less misleading.

Can you share your proximity manager configuration. Are you using regions or filters? Is this beacon an Eddystone or IBeacon (what is it's firmware)?

Regards

drstranges commented 8 years ago

Eddystone UID, URL, TLM, no shuffle, firmware 4.1 Gonfiguration:

EddystoneNamespace.create("XY-Area", MY_BEACON_NAMESPACE, false) EddystoneFilter: eDevice -> EVENTSSION_BEACON_NAMESPACE.equals(eDevice.getNamespace()))

michaldrabik commented 8 years ago

Ok so there's no need to worry. This message is displayed because you specified namespace filter and when bluetooth scanner detects other frames first (Eddystone URL or TLM) that don't contain namespace information it won't parse it. As I said We will refactor this log so it won't show up in cases like this.

Regards