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/CC2640R2F: How to stop broadcasting automatically in limited mode?

Part Number: CC2640R2F

Tool/software: TI-RTOS

Hi everyone!

I want to stop broadcasting after 3 seconds of broadcasting on simple_peripheral project.

I have changed DEFAULT_DISCOVERABLE_MODE from GAP_ADTYPE_FLAGS_GENERAL to GAP_ADTYPE_FLAGS_LIMITED,

and set values of "TGAP_LIM_ADV_TIMEOUT" and "advertOffTime " to 3 but it does not stop broadcasting after 3 seconds.

Is there still have some code I need to modify?

============SimplePeripheral_init====================

uint16_t advertOffTime = 3;


GAP_SetParamValue(TGAP_LIM_ADV_TIMEOUT, 3);

================================================

Many thanks, Gary