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.

关于从机访问主机的service问题



hi TI:

   主机可以通过GATT_DiscCharByUUID来找到从机中的service,现在我想让从机找到主机中的service(我已经把按键的service加入到了主机中),发现调用GATT_DiscCharByUUID后得不到相应的pMsg。(我已经在从机中增加了处理GATT_MSG_EVENT的流程,但是这个函数从来没有进入过)。

static void simpleBLEPeripheral_ProcessOSALMsg( osal_event_hdr_t *pMsg )
 {   
    switch ( pMsg->event )   
    {
       case KEY_CHANGE:       
             simpleBLEPeripheral_HandleKeys( ((keyChange_t *)pMsg)->state, ((keyChange_t *)pMsg)->keys );      
          break;
       case GATT_MSG_EVENT:      
             simpleBLEPeripheralProcessGATTMsg( (gattMsgEvent_t *) pMsg );       
         break;   
       default:     
             // do nothing     
         break;   
    }
}
请问有相关的demo可以参考吗?或者给点提示,谢谢。