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

Fix parsing issue with zero-padded advertisement data #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cybre
Copy link

@cybre cybre commented Dec 4, 2024

Not sure if this is the correct approach here but it solves the issue I have with a device that for some reason adds padding to its advertisement data: 020106030201a20c1601a200894198a19be587da0000000000000000.
On linux, the advertisement data is concatenated with the scan response to build the packet and when I try to get a field which is in the scan response portion, it will return nil because we exit early if int(l) < 1

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.

1 participant