Python projection of the Windows Runtime (WinRT) Bluetooth Advertisement APIs, part of the pywinrt project. Provides access to Bluetooth LE advertisement watcher, publisher, and related types. Current version 3.2.1, requires Python >=3.9, release cadence irregular (major/minor patches monthly to quarterly).
pip install winrt-windows-devices-bluetooth-advertisementVerified import paths — ran on the pinned version, not inferred.
Creates and runs a Bluetooth LE advertisement watcher for 5 seconds.
Use exact casing: `from winrt.windows.devices.bluetooth.advertisement import ...`.
Use `watcher.received += handler` with a callable that accepts (sender, args).
Use `await watcher.start()` if it returns an async action, or `watcher.start()` if it is synchronous. Check return type.
Enable Bluetooth and grant permission in Windows Settings > Privacy & security > Bluetooth.