Hi, all
I have some questions:
1. Is the DFU advertising name could be stored in the dfu_settings_page?
2. How colud I change the DFU advertising name in the application project ( instead to define in sdk_config.h of DFU project).
I had tried to change the DFU advertising name in the application project as follow, but it seem failed:
NRF_SVCI_ASYNC_FUNC_DEFINE(NRF_DFU_SVCI_SET_ADV_NAME, nrf_dfu_set_adv_name, nrf_dfu_adv_name_t);
static void prepare_for_dfu(void)
{
static nrf_dfu_adv_name_t dfuAdvName;
dfuAdvName.crc = 0xFFFFFFFF;
dfuAdvName.len = strlen(DEVICE_NAME);
memcpy(dfuAdvName.name, DEVICE_NAME, dfuAdvName.len);
dfuAdvName.name[dfuAdvName.len] = '\0';
uint32_t err_code = nrf_dfu_set_adv_name(&dfuAdvName);
if (err_code == NRF_SUCCESS)
{
}
NRF_LOG_INFO("nrf_dfu_set_adv_name %d.", err_code);
}
Thanks in advance!