onScanError

abstract fun onScanError(error: Int)

the error occurred during the scan.

Parameters

error

@Integer Fails to start scan as BLE scan with the same settings is already started by the app. SCAN_FAILED_ALREADY_STARTED = 1 Fails to start scan as app cannot be registered. SCAN_FAILED_APPLICATION_REGISTRATION_FAILED = 2; Fails to start scan due an internal error SCAN_FAILED_INTERNAL_ERROR = 3; Fails to start power optimized scan as this feature is not supported. SCAN_FAILED_FEATURE_UNSUPPORTED = 4; Fails to start scan as it is out of hardware resources. SCAN_FAILED_OUT_OF_HARDWARE_RESOURCES = 5; custom error no device found SCAN_FAILED_NO_DEVICE_FOUND = 10