作为观察者为何只能上电接一次数据 就是只有初始化后进入 case GAP_DEVICE_INIT_DONE_EVENT;然后一直循环
GAP_DEVICE_DISCOVERY_EVENT里的打印"Discovering, 想知道满足什么条件才能循环进入 GAP_DEVICE_INFO_EVENT接受到广播者发送的数据呢?GAPRole_ObserverStartDiscovery这个函数的原型在哪里找到?
static void ObserverEventCB( gapRoleEvent_t *pEven" )
{
switch ( pEvent->gap.opcode )
{
case GAP_DEVICE_INIT_DONE_EVENT:
{
GAPRole_ObserverStartDiscovery( DEFAULT_DISCOVERY_MODE,
DEFAULT_DISCOVERY_ACTIVE_SCAN,
DEFAULT_DISCOVERY_WHITE_LIST );
PRINT ( "Discovering...\n");
}
break;
case GAP_DEVICE_INFO_EVENT:
{
ObserverAddDeviceInfo( pEvent->deviceInfo.addr, pEvent->deviceInfo.addrType );
}
break;
case GAP_DEVICE_DISCOVERY_EVENT:
{