Hi All.
I am trying to use the "ble_advertising_advdata_update" function, but my compiler is giving me the following error. Which class do I need to add?
undefined reference to `ble_advertising_advdata_update
I am using SDK nRF5_SDK_15.0.0_a53641a. Advertising works ok after initialisation, but I am trying to update the manufacturer data whilst advertising.
Thanks
void advertising_update(void)
{
ret_code_t err_code;
uint8_t testData[8] = {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x11, 0x22};
ble_gap_adv_data_t adv_data2 = {
.adv_data.p_data = testData,
.adv_data.len = 0x08,
.scan_rsp_data.p_data = testData,
.scan_rsp_data.len = 0//sizeof(raw_scan_rsp_data_buffer2)
};
err_code = ble_advertising_advdata_update(&m_advertising, &adv_data2, true);
APP_ERROR_CHECK(err_code);
}