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.

mac地址获取



我在一处调用的HCI_ReadBDADDRCmd();

在static void simpleBLECentral_ProcessOSALMsg( osal_event_hdr_t *pMsg )里,

case HCI_GAP_EVENT_EVENT:
      hciEvt_CmdComplete_t *pPkt;
  if ( pMsg->status == HCI_COMMAND_COMPLETE_EVENT_CODE )  
         if ( pPkt->cmdOpcode == HCI_READ_BDADDR )
         。。。

为什么HCI_ReadBDADDRCmd()执行了却没有产生HCI_GAP_EVENT_EVENT?这里pPkt结构体里面的status会和HCI_COMMAND_COMPLETE_EVENT_CODE想等么,没有负值的地方。ti之前给的方法是这样,我不知道哪里写错了,没得到结果。