Hello!
我使用皮质M0和Imsending via uart to the DA1480 the device name to be advertised, when i put the parameter that indicates the device name, it says that have to be a const value, im using the DSPS v5.150.2.
im using this function static struct gapm_start_advertise_cmd* app_easy_gap_undirected_advertise_start_create_msg(void) and the parameter that im trying to change is NVDS_TAG_DEVICE_NAME .
i belive that is a noob thing of me. Thanks for any guidance.
问候
Keywords:
Device:
Hi jorge,
You can't change the values that are stored in the NVDS structure during runtime, if you just want to change the advertising name you can remove the function that gets the name from the nvds (nvds_get()) and place your own string in the device_name_temp_buf buffer, place the length of the name in the device_name_length and if the data can fit in the advertising string they will be placed if not the data will be placed in the scan response data.
Thanks MT_dialog
why i can not change the values in NVDS?
Hi jorge,
The NVDS is a storage area that can be populated either from the OTP, SPI or populate it by your firmware and its used to keep system configuration settings, you cant change the data during runtime, please check the UM-B-051 for more info regarding the NVDS structure on Appendix A.
Thanks MT_dialog