bluetooth-adv
Bluetooth LE advertising data and the beacon and sensor formats carried in
it. No I/O, no unsafe, never panics on any input. crates.io, docs.rs, API docs for main.
Advertisement::parseparses advertising data (andextendadds a scan response) into every AD type, named and typed: flags, names, UUIDs, service data, manufacturer data, TX power, appearance, URIs and the rest.beacon::decodefinds the beacons and sensor frames in an advertisement: iBeacon, AltBeacon, Eddystone, BTHome v2, KKM and Ruuvi. AContextcarries the advertiser’s address and any BTHome bind keys or KKM passwords, for encrypted frames.Beacon::readingsflattens a frame into readings with stable keys and units (temperaturein °C), which is what the bridge publishes.
The README’s library example decodes a BTHome advertisement; it runs as a doctest in CI.
Feature serde (default) serializes everything, which is how the bridge
produces its scan/ payloads.