Skip to content

Commit 7b6ab22

Browse files
committed
Merge branch 'release/0.3.2'
2 parents 2cc90fe + 30f5c98 commit 7b6ab22

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Sources/iOS-BLE-Library/CentralManager/CentralManager.swift

+5-3
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,11 @@ extension CentralManager {
234234
///
235235
/// Calling this method stops an ongoing scan if it is already running and finishes the publisher returned by ``scanForPeripherals(withServices:)``.
236236
///
237-
/// - Parameter services: The services to scan for.
237+
/// - Parameters:
238+
/// - services: The services to scan for.
239+
/// - options: A dictionary to customize the scan, such as specifying whether duplicate results should be reported.
238240
/// - Returns: A publisher that emits scan results or an error.
239-
public func scanForPeripherals(withServices services: [CBUUID]?)
241+
public func scanForPeripherals(withServices services: [CBUUID]?, options: [String: Any]? = nil)
240242
-> AnyPublisher<ScanResult, Error>
241243
{
242244
stopScan()
@@ -261,7 +263,7 @@ extension CentralManager {
261263
return e
262264
}
263265
.bluetooth {
264-
self.centralManager.scanForPeripherals(withServices: services)
266+
self.centralManager.scanForPeripherals(withServices: services, options: options)
265267
}
266268
.autoconnect()
267269
.eraseToAnyPublisher()

0 commit comments

Comments
 (0)