BLE 5.0 is enabled but instead of NRF application our there application is not able to find bluetooth. can you tell me how to set advertising init for ble 5.0 ble extended enabled connectable and non scannable.


manuf_data.data.p_data = app_ble_manuf_data_obj.data_buff;
manuf_data.data.size = APP_BLE_MANUF_DATA_BUFF_SIZE;
init.advdata.p_manuf_specific_data = &manuf_data;

init.advdata.name_type = BLE_ADVDATA_FULL_NAME;
init.advdata.include_appearance = true;
init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;//BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;

init.config.ble_adv_primary_phy = BLE_GAP_PHY_CODED; // I added this
init.config.ble_adv_secondary_phy = BLE_GAP_PHY_CODED; // I added this
init.config.ble_adv_extended_enabled = true; // I added this

init.advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]); // I changed srdata to advdata

init.advdata.uuids_complete.p_uuids = m_adv_uuids; // I changed srdata to advdata

init.config.ble_adv_fast_enabled = true;
init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;
init.config.ble_adv_fast_timeout = APP_ADV_DURATION;

init.evt_handler = on_adv_evt;
err_code = ble_advertising_init(&m_advertising, &init);
APP_ERROR_CHECK(err_code);

ble_advertising_conn_cfg_tag_set(&m_advertising, APP_BLE_CONN_CFG_TAG);

Parents Reply Children
No Data
Related