Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan for nearby deivce with onBatchScanResults results list is empty #146

Open
talfsaverone opened this issue May 30, 2024 · 2 comments
Open

Comments

@talfsaverone
Copy link

talfsaverone commented May 30, 2024

When scanning for the nearby devices I saw the following issue:

The onBatchScanResults returns an empty list while the onScanResult returns results.

My configuration is:

ScanSettings.Builder()
        .setScanMode(ScanSettings.SCAN_MODE_BALANCED)
        .setReportDelay(5000L)
        .setUseHardwareBatchingIfSupported(false)
        .setUseHardwareFilteringIfSupported(false)
        .setLegacy(false)
        .build()
@philips77 philips77 transferred this issue from NordicSemiconductor/Android-BLE-Library Jun 4, 2024
@philips77
Copy link
Member

Hmm.. intersting. What if you set setUseHardwareBatchingIfSupported(true)?

@talfsaverone
Copy link
Author

We saw from the comments in the code that it might have issues in some older devices so we haven't used it in our project but we were able to reproduce it with true as well.

Although it is tricky to reproduce this issue our product requires it to work 100% of the time, so what could be our alternative?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants