This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

scan_stop if no advertisers found

Greetings, Using the "central multilink" example project, how do I stop scanning if no advertisers are found? I see a case BLE_GAP_EVT_TIMEOUT in function on_ble_evt() but it isn't compiling. I'd like to scan on wakeup for ≈10 seconds and go back to sleep if no advertisers found. Thanks for the help, boz

Related