TYPE_IBEACON_ALTBEACON is only tested in a switch statement if isEddystone() == true. But the tests in isEddystone already exclude TYPE_IBEACON_ALTBEACON.
Looking at the upstream matcher (m:2-3=beac), to test for AltBeacon you'd need to look for getBeaconTypeCode() == 0xBEAC.
Steps to reproduce
Expected behaviour
Beacon is reported as an AltBeacon.
Actual behaviour
Beacon is detected as an iBeacon. The decoded values (UUID, major, minor) appear to be otherwise correct.
Other details
It looks like the issue is here:
https://github.com/vitas/beaconloc/blob/41960ed9bd4fb8cda7377815a7fecc436405e7e5/app/src/main/java/com/samebits/beacon/locator/model/DetectedBeacon.java#L98-L121
TYPE_IBEACON_ALTBEACON
is only tested in a switch statement ifisEddystone() == true
. But the tests inisEddystone
already excludeTYPE_IBEACON_ALTBEACON
.Looking at the upstream matcher (
m:2-3=beac
), to test for AltBeacon you'd need to look forgetBeaconTypeCode() == 0xBEAC
.Version tested
Version 1.2.2 (F-Droid)