src.bluetooth_sig.advertising.pdu_parser¶
BLE Advertising PDU parser.
This module provides a parser for BLE advertising PDU data packets, extracting device information, manufacturer data, and service UUIDs from both legacy and extended advertising formats.
This is the low-level BLE spec parser. For interpreting vendor-specific sensor data (e.g., Xiaomi, RuuviTag, BTHome), see the AdvertisingDataInterpreter base class.
Attributes¶
Name | Description |
|---|---|
Classes¶
Name | Description |
|---|---|
Parser for BLE advertising PDU data packets. |
Module Contents¶
- class src.bluetooth_sig.advertising.pdu_parser.AdvertisingPDUParser¶
Parser for BLE advertising PDU data packets.
Parses raw BLE advertising PDU bytes into structured AdvertisingData, handling both legacy and extended advertising formats.
This is the low-level parsing layer that extracts: - Manufacturer data (company_id → payload) - Service data (UUID → payload) - Flags, local name, appearance, TX power - Extended advertising fields (BLE 5.0+)
For vendor-specific interpretation (e.g., BTHome sensor values), use AdvertisingDataInterpreter subclasses.
- src.bluetooth_sig.advertising.pdu_parser.logger¶