大家好、
如何减少简单链路外设中的可发现时间
#define DEFAULT_DISCOVERAING_MODE GAP_ADTYPE_FLAGS_GENERAL
#define DEFAULT_DISCOVERAING_MODE GAP_ADTYPE_FLAGS_LIMITED (发现180秒)
但我需要缩短至60秒、您可以为我提供帮助
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.
感谢您的回复、
advertOffTime 是广播将保持关闭状态的时间、直到它在 peripheral.c 中返回 on...used、如下所示:
else // GAP_END_DISCOVERABLE_DONE_EVENT{ if (gapRole_AdvertOffTime != 0) { if ((gapRole_AdvEnabled) || (gapRole_AdvNonConnEnabled)) { Util_restartClock(&startAdvClock, gapRole_AdvertOffTime);