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

nRF52840 sd_ble_gap_adv_set_configure(..) behavior

hi All!

I'm trying to use new SD140-6 function sd_ble_gap_adv_set_configure() , according to spec. if last PARAM is NULL, function behavior : "When this function is used to update advertising data while advertising, this parameter must be NULL. See @ref ble_gap_adv_params_t."

to UPDATE advertising data in realtime:

// UPDATE the data during advertising!
if(m_adv_handle[server_0]!=BLE_GAP_ADV_SET_HANDLE_NOT_SET)
{
ret = sd_ble_gap_adv_set_configure(&m_adv_handle[server_0], &advdata_raw , NULL /*&advparam*/);
APP_ERROR_CHECK(ret);
}

But ERROR (8) returns.  WHY ?

thx!

Related