Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Major and minor with wrong values #472

Open
xyboox opened this issue Jun 15, 2022 · 1 comment
Open

Major and minor with wrong values #472

xyboox opened this issue Jun 15, 2022 · 1 comment

Comments

@xyboox
Copy link

xyboox commented Jun 15, 2022

Please include the following to help us address your issue.

  1. Expected behavior and actual behavior.
    I've 4 beacons with same uuid and same major ( 1000 ) but each with different minor ( 1000-1003). The reading in didRangeBeaconsInRegion reports back beacons with major=4096 and minor between 4096 and 4100 as follows:
  • minor initially set to 1000, reported as 4096.
  • minor 1001, reported as 4097
  • minor 1002, reported as 4098,
  • minor 1003, reported as 4100
  1. Steps to reproduce the problem.
    The most basic setup with ranging beacons in a region

  2. using it in Ionic with capacitor 3:
    Ionic:

    Ionic CLI : 6.19.1 (/opt/homebrew/lib/node_modules/@ionic/cli)
    Ionic Framework : @ionic/angular 6.1.6
    @angular-devkit/build-angular : 13.2.6
    @angular-devkit/schematics : 13.2.6
    @angular/cli : 13.2.6
    @ionic/angular-toolkit : 6.1.0

Capacitor:

Capacitor CLI : 3.5.1
@capacitor/android : 3.5.1
@capacitor/core : 3.5.1
@capacitor/ios : 3.5.1

Utility:

cordova-res : not installed globally
native-run : 1.6.0

System:

NodeJS : v14.19.3 (/opt/homebrew/Cellar/node@14/14.19.3/bin/node)
npm : 6.14.17
OS : macOS Monterey

@dahLucky
Copy link

Hi Xyboox, seems you have configured your beacons in hexadecimal (base16) instead of decimal numbers.

E.g. HEX 1000 equals DEC 4096, HEX 1001 equals DEC 4097 etc.

Hope that helps.

Cheers,
Lu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants