Skip to content

Commit

Permalink
[Darwin] Turn on CBCentralManagerScanOptionAllowDuplicatesKey (#27069)
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien-apple authored and pull[bot] committed Nov 28, 2023
1 parent 0d99d7f commit 2295281
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platform/Darwin/BleConnectionDelegateImpl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,8 @@ - (void)startScanning
return;
}

[_centralManager scanForPeripheralsWithServices:@[ _shortServiceUUID ] options:nil];
auto scanOptions = @{ CBCentralManagerScanOptionAllowDuplicatesKey : @YES };
[_centralManager scanForPeripheralsWithServices:@[ _shortServiceUUID ] options:scanOptions];
}

- (void)stopScanning
Expand Down Expand Up @@ -716,7 +717,7 @@ - (void)addPeripheralToCache:(CBPeripheral *)peripheral data:(NSData *)data
ChipLogProgress(Ble, " - Version: %u", info.GetAdvertisementVersion());
ChipLogProgress(Ble, " - Discriminator: %u", info.GetDeviceDiscriminator());
ChipLogProgress(Ble, " - VendorId: %u", info.GetVendorId());
ChipLogProgress(Ble, " - ProductId: %u", info.GetVendorId());
ChipLogProgress(Ble, " - ProductId: %u", info.GetProductId());
}
}

Expand Down

0 comments on commit 2295281

Please sign in to comment.