0

I'm trying to scan for Bluetooth devices using the Bluetooth discovery method. At the moment I have implemented something similar to the following (top answer): How to periodically scan for bluetooth devices on android

However, as mentioned in the top answer this only scans every 12 seconds where I need this scan time to be reduced down to < 1s~. Can't seem to find much useful information online.

The Bluetooth modules I'm scanning for do support BLE, if that helps.

Mat Whiteside
  • 551
  • 1
  • 5
  • 17

1 Answers1

3

12 seconds is a default scanning interval and could be stopped by the cancelDiscovery(), so call this function after 1s of scanning.

vookimedlo
  • 1,209
  • 12
  • 24