Android Question BLE2 Scanning

aaronk

Well-Known Member
Licensed User
Longtime User
Hi,

I am using the BLE2 lib - https://www.b4x.com/android/forum/threads/ble-2-bluetooth-low-energy.59937/

When I scan for devices:

B4X:
manager.Scan(Null)

I then put my device in discovery mode and my app finds the device.

So far so good.

I then run my app, run the code as per above, then wait 30 seconds, then put my device in discovery mode. My app doesn't find the device.

Questions:
1. Is there a timeout value for how long it scans for devices for ?
2. Am I correct if I connect to a BLE device, it will stop the scanning of devices and I then need to re-run the scan ?
 
Top