Hi, I am using nrf52840 with sdk17 and soft device 140 on custom hardware. My application works ok but I want to enable extended advertising using ble_advertising library.
As soon as I set the ble_adv_extended_enabled flag in ble_adveritising_init I am no longer able to find the device when scanning. I use the nrf52840 dk and nRF Connect for Desktop to do the scanning. Surely it must support this mode? Is there anything else I must do to get this to work?
Here is the full init code:
uint32_t err_code;
ble_advertising_init_t init;
memset(&init, 0, sizeof(init));
init.advdata.name_type = BLE_ADVDATA_FULL_NAME;
init.advdata.include_appearance = false;
init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
init.advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
init.advdata.uuids_complete.p_uuids = m_adv_uuids;
memcpy(&m_adv_data, &init.advdata, sizeof(m_adv_data));
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;
init.error_handler = on_adv_error;
init.config.ble_adv_extended_enabled = true;
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);