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.

CC2640中的 notification问题



uint8_t charValue4=OneShotADC(0x80)/16;

在1秒的定时器回调中添加--------------

static attHandleValueNoti_t pReport ;//声明attHandleValueNoti_t这个结构体

uint16 noti_cHandle; //存放handle

pReport.handle = simpleProfileAttrTbl[11].handle;//读取notification对应的

handle GAPRole_GetParameter( 0x30E, &noti_cHandle);//获取Connection Handle

pReport.len = 1;//数据长度

pReport.pValue[0] = charValue4;//赋值

GATT_Notification(noti_cHandle,&pReport,FALSE);

结果一开始定时器就死机