Example中通过SimpleProfile_SetParameter()来执行Notify,我想要知道的是,调用SimpleProfile_SetParameter()之后,怎样知道这一包数据已经发送出去,会否会有相应的事件或callback ?
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.
case SIMPLEPROFILE_CHAR4:
if ( len<SIMPLEPROFILE_CHAR4_LEN)
{
VOID memcpy( simpleProfileChar4, value, SIMPLEPROFILE_CHAR4_LEN );
// See if Notification has been enabled
GATTServApp_ProcessCharCfg( simpleProfileChar4Config, simpleProfileChar4, FALSE,
simpleProfileAttrTbl, GATT_NUM_ATTRS( simpleProfileAttrTbl ),
INVALID_TASK_ID, simpleProfile_ReadAttrCB );
}
你可以对GATTServApp_ProcessCharCfg进行返回值判断