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.

WriteAttrCB, ReadAttrCB, ATT_ReadRsp, ATT_WriteRsp and ATT_ErrRsp

Other Parts Discussed in Thread: CC2541

Dear Sir,

I'm new to BLE stuff and I'm working on a project that uses CC2541 as a slave.  I have WriteAttrCB() and ReadAttrCB() implemented for client to write/read some characteristic values.  The problem I'm facing is the read/write operations may take some time, about 30ms,  to finish, so the read/write operations are asynchronous.  In WriteAttrCB() and ReadAttrCB(), I have to return SUCCESS before the real result comes back.  Are ATT_WriteRsp(), ATT_ReadRsp() and ATT_ErrRsp() used to report the late coming result to the client?  I can't find any sample that doing this kind of operation.  Please help and thank you.

BR,

Eric Tsai