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.

bStatus_t GATT_Notification( uint16 connHandle, attHandleValueNoti_t *pNoti, uint8 authenticated );函数中handle的问题



bStatus_t GATT_Notification( uint16 connHandle, attHandleValueNoti_t *pNoti, uint8 authenticated );中涉及到两个handle,

第一:参数 connHandle

第二:结构体attHandleValueNoti_t *pNoti中的handle

这两个handle分别对应于什么,在哪里找到其值

另外请看这一段程序:

        static attHandleValueNoti_t pReport ;
        uint16 noti_cHandle; //存放handle
        pReport.handle = simpleProfileAttrTbl[11].handle;//读取notification对应的handle
        GAPRole_GetParameter( 0x30E, &noti_cHandle);//获取Connection Handle
        pReport.len = 1;//数据长度
        pReport.value[0] = 0x03;//赋值
        GATT_Notification(noti_cHandle,&pReport,FALSE);
这两个handle有没有用反了?