Part Number: CC2640R2F
Hello,
In multi_role example, the data flow during a characteristic write is below :
- the stack first calls simpleProfile_WriteAttrCB()
- then, multi_role_charValueChangeCB() is called and enqueues the message with MR_CHAR_CHANGE_EVT event
- next multi_role_processAppMsg() listens for enqueued messages and calls multi_role_processCharValueChangeEvt() for this event.
- finally, my code is written in multi_role_processCharValueChangeEvt() function
My code can succeed or fail. Thus, I want to send a different BLE ACK value thanks to this result.
I think doing so is possible by modifying the return value of simpleProfile_WriteAttrCB(). However, this functions has returned a long time before my code was executed.
What could be a good way to do so ?
Thanks
Damien