I'm having this onScanFailed error code on some devices (LG to be more detailed) when discovering BLE devices on android. The code works as expected on another devices. How can i fix it?
I use BLE API 21+ and the following code to discover:
ScanSettings scanSettings = new ScanSettings.Builder()
Here are the full sources:
Some devices do not support all of the features of the new LE API. The features are hardware specific and up to the manufacturer to enable. The best approach is to check for the supported feature before building the filter and settings.
I haven't found any issues with issuing filters when OffloadedFiltering isn't supported.
If OffloadedScanBatching isn't supported, then you should not set a report delay. Attempting to set a report delay of anything other than 0 will result in an error.