| 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;
|
| }
|
|
|
|
|