语言

Menu
Sites
Language
Bluetooth

Hello,

I am developing a Native Application on Samsung Gear S2 and I would like to scan for Bluetooth Low Energy (BLE) devices. I am following the instructions on the tutorials  where I call the bt_adapter_le_start_scan function to carry out a scan. Currently I am receiving scans intermittently with very high delay between scan results. Is there any way I can increase the scanning rate?

Thanks,

Jingdao

 

响应

1 回复
Yasin Ali

Hi~,

You may try in this way. This is an idea sharing with you.
1. Use bt_adapter_le_start_scan( starts the LE scan to find LE advertisement).
2. Create a timer and set the timeout, e.g. 5 seconds
3. On timeout execute bt_adapter_le_stop_scan( Precondition: The LE scan must be in progress with bt_adapter_le_start_scan).

This is supposed to scan for ble devices until the timer expires and the stop function is called
which will stop scanning forcefully.

Hope it will help you.

Thanks.