startScanning
open override fun startScanning(filter: Filter = emptySet(), cleanMode: BluetoothClient.CleanMode = CleanMode.REMOVE_ALL, connectionSettings: ConnectionSettings? = null)
Starts scanning for ConnectableDevice. To receive the devices, use scannedDevices or allDevices
Parameters
filter
if not empty, only ConnectableDevice that have at least one Service matching one of the UUID will be scanned.
cleanMode
the CleanMode to apply to previously scanned ConnectableDevice. CleanMode.ONLY_PROVIDED_FILTER will apply to filter
connectionSettings
the ConnectionSettings to apply to scanned ConnectableDevice. If null the default will be used Note that if a ConnectableDevice was previously scanned (and not cleaned by cleanMode) the old ConnectionSettings will still apply.