Hello!
I'm trying to advertise my custom service. After setting everything up, when calling ble_advertising_init I receive error 0x7.
static m_adv_uuids[] = {0x1523, 0x2}; //my custom uuid and vendor spefic type
void advertising_init(){
uint32_t err_code;
static ble_advdata_t advdata;
// Build advertising data struct to pass into @ref ble_advertising_init.
memset(&advdata, 0, sizeof(advdata));
advdata.name_type = BLE_ADVDATA_FULL_NAME;
advdata.include_appearance = true;
advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_LIMITED_DISC_MODE;
advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
advdata.uuids_complete.p_uuids = m_adv_uuids;
ble_adv_modes_config_t options = {0};
options.ble_adv_whitelist_enabled = true;
options.ble_adv_fast_enabled = BLE_ADV_FAST_ENABLED;
options.ble_adv_fast_interval = APP_ADV_INTERVAL;
options.ble_adv_fast_timeout = APP_ADV_TIMEOUT_IN_SECONDS;
err_code = ble_advertising_init(&advdata, NULL, &options, on_adv_evt, NULL);
#ifdef RTT_DBG
SEGGER_RTT_printf(0,"advertising_init err_code: %d \r\n", err_code);
#endif
APP_ERROR_CHECK(err_code);
}