scan PSDevices
fun scanPSDevices(context: <Error class: unknown class>, prefix: String? = "", duration: Long = 5000, exactMatch: Boolean? = true, scanCallback: BleScanCallback)
Scans for Bluetooth devices with a specified prefix
Parameters
context
The Activity context where the scan is initiated
prefix
The prefix of the Bluetooth device name used for filtering (default is empty string)
duration
The duration of the scan in milliseconds (default is 5000 milliseconds)
exact Match
Whether to perform an exact match (default is true)
scan Callback
The callback for handling scan results