在
timeAppDiscStart( void )
{
// Clear handle cache
osal_memset( timeAppHdlCache, 0, sizeof(timeAppHdlCache) );
// Start discovery with first service
return timeAppDiscGattMsg( DISC_ANCS_START, NULL );
}
中调用imeAppDiscGattMsg( DISC_ANCS_START, NULL );其中第二个参数是NULL,进入该函数中去之后,选择执行了
switch ( state & 0xF0 )
{
// Alert notification service
case DISC_ANCS_START:
state = TimeAppDiscAlertNtf( state, pMsg );的函数,pMsg是为NULL的,那在 TimeAppDiscAlertNtf( uint8 state, gattMsgEvent_t *pMsg )中,
if ( pMsg->method == ATT_FIND_BY_TYPE_VALUE_RSP &&
pMsg->msg.findByTypeValueRsp.numInfo > 0 )pMsg的值是哪里来的?