Skip to content

Add Support for Packet Contains Multiple Advertising Reports#79

Open
pseudocc wants to merge 4 commits into
citruz:masterfrom
pseudocc:multiple-reports
Open

Add Support for Packet Contains Multiple Advertising Reports#79
pseudocc wants to merge 4 commits into
citruz:masterfrom
pseudocc:multiple-reports

Conversation

@pseudocc

@pseudocc pseudocc commented Sep 2, 2025

Copy link
Copy Markdown

Previous code assumes the "HCI Event Packet" of either LE AD Report or
Extended AD Report type only contains exact one report, using a fixed
offset to retrieve the report data will result in only the first report
is handled.

This change reads the number of reports and their data by defining
construct.Structs according to Spec of the Bluetooth System.

Closes: #78

Previous code assumes the "HCI Event Packet" of either LE AD Report or
Extended AD Report type only contains exact one report, using a fixed
offset to retrieve the report data will result in only the first report
is handled.

This change reads the number of reports and their data by defining
`construct.Struct`s according to Spec of the Bluetooth System.

Closes: citruz#78
* packet.type should always be HCI_EVENT_PKT (0x04)
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.

HCI packets are not parsed correctly

1 participant