Skip to content

Expose scan settings in centralScanning #336

@PietroGranati

Description

@PietroGranati

After a bit of research and thanks to @m1ga I found out that in ScanManagerAPI21Onwards.java there is a hardcoded setting that can be useful:
scanBuilder.setScanMode(ScanSettings.SCAN_MODE_LOW_POWER);
In fact this prevent the module sto scan for beacon at maximum effort so I modified it in:
scanBuilder.setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY);
And now it's much better, maybe you can expose the settings.

Ref:
https://developer.android.com/reference/android/bluetooth/le/ScanSettings#SCAN_MODE_LOW_LATENCY

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions