I'm trying to use the new ble_advertising_advdata_update from SDK 15.1 by doing
ble_gap_adv_data_t adv_data; uint8_t data[2]; memcpy(&data, &m_adv_manuf_array, sizeof(m_adv_manuf_array)); adv_data.adv_data.p_data = data; adv_data.adv_data.len = sizeof(data); ret_code = ble_advertising_advdata_update(&m_advertising, &adv_data, true); APP_ERROR_CHECK(ret_code);
but I get NRF_ERROR_INVALID_ADDR
What do I need to do to get it to work?