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.

How to change default timeout of adverisement of 180 secods to less?

I found it in one of the discussion that,

TGAP_LIM_ADV_TIMEOUT controls how long you advertise when GAP_ADTYPE_FLAGS_LIMITED is set. The documentation states "Maximum time to remain advertising, when in Limited Discoverable mode. In seconds (default 180 seconds). "

So,3 min is the default

But   I cant understand  how to minimise it. I search lots of but do not find the code line for setting the TGAP_LIM_ADV_TIMEOUT. Please tell me how to minimise default timeout time