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