bluetooth-adv
Bluetooth LE advertising data, parsed and decoded.
Advertisement::parse reads the AD structures of an advertisement or
scan response (Core Specification Supplement, Part A) into typed fields,
naming companies, UUIDs and appearance from the SIG's assigned numbers
(bluetooth_numbers). beacon::decode then recognises beacon and
sensor formats inside it.
Nothing here panics on any input: advertisements come off the air from devices nobody vetted, and every parser is fuzzed.
use ;
// Flags, then an iBeacon.
let data = decode.unwrap;
let adv = parse;
let beacons = decode;
assert!;
Part of bluetooth-bridge, maintained by Pulzar. See the user guide, the library guide and the API documentation.
License: MIT.