scan Le Devices
open fun scanLeDevices( @NonNull context: Context, scanPeriod: Int, @NonNull swLeScanCallback: ISWLeScanCallback)
Content copied to clipboard
Start scan for Ble Devices BleDevice.
Parameters
context
the application context.
scan Period
Integer the time out of scanning(in milli second) Note that the minimum scan period is 10 seconds. So if scanPeriod value is lower than 10 seconds, it will be ignored..
sw Le Scan Callback
ISWLeScanCallback the callback that receive the list of scanned Devices.