Hi. I'm using nRF51822, SDK12.2.0, S130 as multi-link Central.
#define SCAN_TIMEOUT 10
Time-out is working well when it is Single connection. After 10 second, it stops scanning.
When I use it as multi-link central, the operation is as below.
- Start scan(having 10seconds timeout)
- Spend 9seconds.
- find a peripheral I want
- Stop scanning
- connection
- Start scan(having more 10seconds timeout)
- goes to step2.
I want timeout it works during just 10 seconds. But it will work more. Sometimes it works infinitely. My example operation as I said above, it will take 80seconds around because nRF can have 8 multi connection. Plus, if I disconnect devices, it could work more or infinitely. It makes current consumption issue.
My question is Q1. Do I have to stop scan when I connect using "sd_ble_gap_connect"? Q2. If yes for Q1, is there any function for ABSOLUTE scan time out?
I need your help.