Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

no advertising timeout

sdk:nRF5_SDK_12.3.0_d7731ad\examples\ble_central_and_peripheral\experimental\ble_app_hrs_rscs_relay\pca10040\s132\arm5_no_packs

#define APP_ADV_INTERVAL                               300
#define APP_ADV_TIMEOUT_IN_SECONDS       10 
#define SCAN_INTERVAL                                      0x00A0 
#define SCAN_WINDOW                                        0x0050 
#define SCAN_TIMEOUT                                        0

I CAN'T get  BLE_GAP_EVT_TIMEOUT event。I have not change any code except above parameter。

void ble_advertising_on_ble_evt(ble_evt_t const * p_ble_evt)
{
    switch (p_ble_evt->header.evt_id)
    {
        case BLE_GAP_EVT_CONNECTED:
            on_connected(p_ble_evt);
            break;
        // Upon disconnection, whitelist will be activated and direct advertising is started.
        case BLE_GAP_EVT_DISCONNECTED:
            on_disconnected(p_ble_evt);
            break;
        // Upon time-out, the next advertising mode is started.
        case BLE_GAP_EVT_TIMEOUT:
            on_timeout(p_ble_evt);
            break;
        default:
            break;
    }
}
Parents Reply Children
No Data
Related