Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1792)

Unified Diff: device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm

Issue 2205693003: bluetooth: Replace old advertised uuids (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Improve comments Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_device_mac.mm ('k') | device/bluetooth/test/bluetooth_test.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm
diff --git a/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm b/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm
index 77dafb03c8d62ac8ccb545054ed18f306e1442e3..eeb1ace3beb1996e17dc2abb39103a7ffc787899 100644
--- a/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm
+++ b/device/bluetooth/bluetooth_low_energy_discovery_manager_mac.mm
@@ -64,7 +64,15 @@ void BluetoothLowEnergyDiscoveryManagerMac::TryStartDiscovery() {
};
VLOG(1) << "TryStartDiscovery scanForPeripheralsWithServices";
- [central_manager_ scanForPeripheralsWithServices:services options:nil];
+ // Start a scan with the Allow Duplicates option so that we get notified
+ // of each new Advertisement Packet. This allows us to provide up to date
+ // values for RSSI, Advertised Services, Advertised Data, etc.
+ [central_manager_
+ scanForPeripheralsWithServices:services
+ options:@{
+ CBCentralManagerScanOptionAllowDuplicatesKey :
+ @YES
+ }];
pending_ = false;
}
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_device_mac.mm ('k') | device/bluetooth/test/bluetooth_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698