startScanning

open override fun startScanning(filter: Filter, cleanMode: BluetoothService.CleanMode, connectionSettings: ConnectionSettings?)

Starts scanning for Device. To receive the devices, use scannedDevices or allDevices

Parameters

filter

if not empty, only Device that have at least one Service matching one of the UUID will be scanned.

cleanMode

the CleanMode to apply to previously scanned Device. CleanMode.ONLY_PROVIDED_FILTER will apply to filter

connectionSettings

the ConnectionSettings to apply to scanned Device. If null the default will be used Note that if a Device was previously scanned (and not cleaned by cleanMode) the old ConnectionSettings will still apply.