From 7d6714e53a26902c18f290330ea8739ccdcf8536 Mon Sep 17 00:00:00 2001 From: Foti Dim Date: Wed, 12 Jun 2024 06:02:52 +0200 Subject: [PATCH] Set CBCentralManagerScanOptionAllowDuplicatesKey to true (#51) --- CHANGELOG.md | 1 + darwin/Classes/UniversalBlePlugin.swift | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc84d9e..b47e7bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ * Add .perDevice queue * Improve code level documentation * Support "ProvidePin" pairing on Windows 10/11 +* Get RRSI updates on Apple platforms ## 0.9.11 * Add device name prefix filtering diff --git a/darwin/Classes/UniversalBlePlugin.swift b/darwin/Classes/UniversalBlePlugin.swift index c684444..81344fb 100644 --- a/darwin/Classes/UniversalBlePlugin.swift +++ b/darwin/Classes/UniversalBlePlugin.swift @@ -73,7 +73,8 @@ private class BleCentralDarwin: NSObject, UniversalBlePlatformChannel, CBCentral // Save scanFilter for later user scanFilter = filter - manager.scanForPeripherals(withServices: withServices) + let options = [CBCentralManagerScanOptionAllowDuplicatesKey: true] + manager.scanForPeripherals(withServices: withServices, options: options) } func stopScan() throws {