API to change advertising data.

3 posts / 0 new
Last post
Matthieu ANTOINE
Offline
Last seen:4 years 5 months ago
Expert
加入:2014-01-14 14:51
API to change advertising data.

Hi,

In my application, I start the advertising process when I receive a specific SPI message. Inside that SPI message, there are data I would like to advertise.
Is there an API that allows me to update the advertising data in SDK5?

Thanks!
_Matthieu

Device:
Matthieu ANTOINE
Offline
Last seen:4 years 5 months ago
Expert
加入:2014-01-14 14:51
Hi again,

Hi again,

I would like to use NVDS API but I have an issue... I change the flag "NVDS_READ_WRITE" to 1 but the compiler says the symbol "nvds_put" is undefined.
我需要改变什么?

Thanks.
_Matthieu

MT_dialog
Offline
Last seen:1 month 4 weeks ago
工作人员
加入:2015-06-08 11:34
Hi Matthieu,

Hi Matthieu,

Regarding your first question you can use the ble_app_barebone example to learn how to update the advertising string on SDK5, also an implementation on SDK3 can be found in the beacon reference design.

You shouldn't change anything else except for that flag, can you please have a look in the file and check the #if (NVDS_READ_WRITE == 1) #endif NVDS_READ_WRITE there should be the declaration of the nvds_put() function in the conditional statement. Also please have a look at the barebone example, the project has the declaration of the function in the conditional statement.

Thanks MT_dialog