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

what does sd_ble_gap_adv_set_configure do with the buffer to ble_gap_adv_data_t?

Hi, I am developing a SDK 17.0.0 based iBeacon application, and I see below API for initializing/updating advertising data.

I want to know what does it do with the buffer?

If I update the data in the buffer directly and not invoke this API, will the BLE engine update the advertising data?

If sd_ble_gap_adv_set_configure is called with the same buffer for updating with initializing, why does it return error?

Do I have to use 2 buffers to update advertising data?

 

uint32_t sd_ble_gap_adv_set_configure ( uint8_t *  p_adv_handle,
ble_gap_adv_data_t const *  p_adv_data,
ble_gap_adv_params_t const *  p_adv_params 
)

Thanks,

srony

Related