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.
A peripheral device can either be limited discoverable (advertises for 30 seconds), or general discoverable (indefinitely advertises).
要使能这一功能,需要把DEFAULT_DISCOVERABLE_MODE 设置为GAP_ADTYPE_FLAGS_GENERAL,如下:
// General discoverable mode: advertise indefinitely
#define DEFAULT_DISCOVERABLE_MODE GAP_ADTYPE_FLAGS_GENERAL
simple peripheral的例程默认就是这么设置的