File tree 1 file changed +5
-3
lines changed
Sources/iOS-BLE-Library/CentralManager
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -234,9 +234,11 @@ extension CentralManager {
234
234
///
235
235
/// Calling this method stops an ongoing scan if it is already running and finishes the publisher returned by ``scanForPeripherals(withServices:)``.
236
236
///
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.
238
240
/// - 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 )
240
242
-> AnyPublisher < ScanResult , Error >
241
243
{
242
244
stopScan ( )
@@ -261,7 +263,7 @@ extension CentralManager {
261
263
return e
262
264
}
263
265
. bluetooth {
264
- self . centralManager. scanForPeripherals ( withServices: services)
266
+ self . centralManager. scanForPeripherals ( withServices: services, options : options )
265
267
}
266
268
. autoconnect ( )
267
269
. eraseToAnyPublisher ( )
You can’t perform that action at this time.
0 commit comments