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

setting Major and Minor when running test-ibeacon.js #2

Closed
heyjoey opened this issue Nov 13, 2013 · 1 comment
Closed

setting Major and Minor when running test-ibeacon.js #2

heyjoey opened this issue Nov 13, 2013 · 1 comment

Comments

@heyjoey
Copy link

heyjoey commented Nov 13, 2013

There is a problem when setting Major and Minor number in test-ibeacon.js. The number read will be messed up because at Line 64 and Line 65 in bleno.js writeUInt16LE was used instead of writeUInt16BE.

Using writeUInt16BE corrected the issue.
My env is OS X 10.9 on 2011 Macbook Air.

Thank you very much for sharing this wonderful BLE sample code with us.
By the way, the naming of noble and bleno are very ingenious!!!

@sandeepmistry
Copy link
Collaborator

@heyjoey Good catch and thanks for the heads up!

I've updated both bleno and bleacon

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