这是在从机上对GAP状态的描述
typedef enum
{
GAPROLE_INIT = 0, //!< Waiting to be started 等待启动
GAPROLE_STARTED, //!< Started but not advertising 启动但是没有在广播
GAPROLE_ADVERTISING, //!< Currently Advertising 处于广播状态
GAPROLE_WAITING,
//设备启动但是没处于广播状态,处于再次广播之前的等待期间,比如关闭了广播等待再次打开广播
//!< Device is started but not advertising, is in waiting period before advertising again
GAPROLE_WAITING_AFTER_TIMEOUT,
// 设备仅仅是从连接中超时但是未广播,在再次广播之前处于等待期间
//!< Device just timed out from a connection but is not yet advertising, is in waiting perio