Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/winrtble/ble/watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ impl BLEWatcher {
self.watcher
.SetScanningMode(BluetoothLEScanningMode::Active)?;
let _ = self.watcher.SetAllowExtendedAdvertisements(true);
// Also receive on the Coded (long-range) PHY where the adapter and
// OS support it. Only takes effect alongside extended advertisements
// (above); the error is ignored the same way, so systems without
// Coded PHY support behave exactly as before.
let _ = self.watcher.SetUseCodedPhy(true);

// Pre-convert the filter UUIDs once so the handler closure is cheap.
let filter_guids: Vec<windows::core::GUID> = services.iter().map(utils::to_guid).collect();
Expand Down
Loading