在做multi_role作为主机接收从机端发送来的notify过程中,无论怎么配置主机端始终没有进入static uint8_t simpleTopology_processGATTMsg(gattMsgEvent_t *pMsg),自己走了些弯路这里写出解决方法,提醒一下遇到同样问题的电工。
解决方法:在初始化中,
增加: // Register to receive incoming ATT Indications/Notifications
GATT_RegisterForInd(selfEntity);
注意:这里的解决方法只是对于其他的都配置完成之后,而且只针对该工程,其他工程无需这样做。
该解决方法来源:TI论坛