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

NRF_BLE_SCAN_EVT_SCAN_TIMEOUT is not called when the Scan has a timeout

I'm using SDK 17.0.2 And I found that when the Scan timeout is not working,

Debugging I found that when the nrf_ble_scan_on_timeout function is called, the source of the timeout (p_timeout->src) is BLE_GAP_TIMEOUT_SRC_CONN instead of  BLE_GAP_TIMEOUT_SRC_SCAN  and this means that the callback for the app with the NRF_BLE_SCAN_EVT_SCAN_TIMEOUT is never called.

Is anyone who has encountered this problem? how can I solve it?

Thanks

Related