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

Handling raw data obtained from Android's ScanRecord.getBytes #10

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

kaorukobo
Copy link

@kaorukobo kaorukobo commented Nov 7, 2021

Thanks for providing the nice library.

I have utilized the lib to analyze the raw AdvData obtained from android.bluetooth.le.ScanRecord.getBytes.

To fit that purpose without any modification of input, I propose two changes on parse() and split():

  • Handle the trailing zero-padding bytes.
  • Add noPayloadLength option as the 4th parameter of parse().

Example of data from android.bluetooth.le.ScanRecord.getBytes

1a ff 4c 00 02 15 50 76 5c b7 d9 ea 4e 21 99 a4 fa 87 96 13 a4 92 b2 c9 64 d1 ce 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
(iBeacon)

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

Successfully merging this pull request may close these issues.

None yet

1 participant