This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/LAUNCHXL-CC2640R2: how can set advertisement data length more then 28Byte in BLE5

Part Number: LAUNCHXL-CC2640R2

Tool/software: TI-RTOS

I know that in BLE version 5 advertisement data length can be 252byte.

so I setting the length of advertisement data 40byte in _advertData.

I update advertisement data using this code GAPRole_SetParameter(GAPROLE_ADVERT_DATA, sizeof(_advertData), _advertData);

and then scan using my phone, there are no advertisement data. (iPhone 8+, using application = TI Sensor TAG(SimpleLink)

I use sample project named "simple_peripheral_observer_cc2640r2lp_app"

here is setting code in project.

------

   GAPRole_SetParameter(GAPROLE_ADVERT_DATA, sizeof(_advertData), _advertData);

Function is here

return value (ret) is SUCCESS.. but it doesn't work.. PLZ let me know what's wrong...