![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| uint32_t ble_adv_data_update | ( | struct ble_adv * | ble_adv, |
| const struct ble_adv_data * | adv, | ||
| const struct ble_adv_data * | sr ) |
#include <ble_adv.h>
Update advertising data.
This function can be called if you wish to reconfigure the advertising data The update will be effective even if advertising has already been started.
| [in] | ble_adv | Advertising Module instance. |
| [in] | adv | Pointer to the structure for specifying the content of advertising data. Or null if there should be no advertising data. |
| [in] | sr | Pointer to the structure for specifying the content of scan response data. Or null if there should be no advertising data. |
| NRF_SUCCESS | If the operation was successful. |
| NRF_ERROR_NULL | If ble_adv is null or if both adv and sr are NULL. |
| NRF_ERROR_INVALID_STATE | If advertising instance was not initialized. |
| NRF_ERROR_INVALID_ADDR | Invalid address. |
| NRF_ERROR_INVALID_PARAM | Invalid parameter provided in the advertising data context. |
| NRF_ERROR_DATA_SIZE | Buffer is too small to encode all data. |
sd_ble_gap_adv_set_configure on failure.