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

advertising nrf52840 unlimitedly using ble_app_beacon

hi, i made my nrf 52840 dk advertise unlimitedly using ble_app_uart example. connected and disconnected several times using nrfconnect app. it really works fine. with this necessary changes.

init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;

init.config.ble_adv_fast_timeout =0;

i want to do the same thing in ble_app_beacon. but the result is it is advertising for limited time and as well as once if we connect and disconnect using nrfconnect app. it is not advertising again. i made some changes. still i didnt get it done.

advdata.flags=BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;

m_adv_params.type = BLE_GAP_ADV_TYPE_ADV_IND; m_adv_params.p_peer_addr = NULL; // Undirected advertisement. m_adv_params.fp = BLE_GAP_ADV_FP_ANY; m_adv_params.interval = APP_ADV_INTERVAL;//NON_CONNECTABLE_ADV_INTERVAL; m_adv_params.timeout = 0; // Never time out.

do i want to do any other changes. pls suggest me. thanks in advance.

Related