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.

KeyFobDemo Advertising timeout 30s vs 3m?

Documentation and code states that device will continue to advertise for 30s after button is pressed.  However, I'm seeing a 3 minute timeout instead.  I haven't been able to determine where this 6x factor is coming from.


I've noticed that the discoverable mode is set to GAP_ADTYPE_FLAGS_LIMITED.  Is this the default timeout for limited mode? 

Changing the mode to GAP_ADTYPE_FLAGS_GENERAL doesn't seem to do anything other than to make sure that the advertising never stops.  Is there a way to control the advertising period from within the stack or do I need to set up a timer to turn it off and on?  The gapRole_AdvertOffTime looks like it is meant to be the time that the advertising stays off, but the code never sees a GAP_END_DISCOVERABLE_DONE_EVENT.  What kicks this off?

I've tested this with both the 1.3.2 and 1.4 images with the same results.