ble_att_svr_entry_list struct
ATT server - Attribute Protocol Notes on buffer reuse: Most request handlers reuse the request buffer for the response. This is done to prevent out-of-memory conditions. However, there are two handlers which do not reuse the request buffer: 1. Write request. 2. Indicate request. Both of these handlers attempt to allocate a new buffer for the response prior to processing the request. If allocation fails, the request is not processed, and the request buffer is reused for the transmission of an "insufficient resources" ATT error response. These handlers don't reuse the request mbuf for an affirmative response because the buffer contains the attribute data that gets passed to the application callback. The application may choose to retain the mbuf during the callback, so the stack
Syntax
STAILQ_HEAD(ble_att_svr_entry_list;
Fields
stqh_first
ATT server - Attribute Protocol Notes on buffer reuse: Most request handlers reuse the request buffer for the response. This is done to prevent out-of-memory conditions. However, there are two handlers which do not reuse the request buffer: 1. Write request. 2. Indicate request. Both of these handlers attempt to allocate a new buffer for the response prior to processing the request. If allocation fails, the request is not processed, and the request buffer is reused for the transmission of an "insufficient resources" ATT error response. These handlers don't reuse the request mbuf for an affirmative response because the buffer contains the attribute data that gets passed to the application callback. The application may choose to retain the mbuf during the callback, so the stack.
stqh_last
ATT server - Attribute Protocol Notes on buffer reuse: Most request handlers reuse the request buffer for the response. This is done to prevent out-of-memory conditions. However, there are two handlers which do not reuse the request buffer: 1. Write request. 2. Indicate request. Both of these handlers attempt to allocate a new buffer for the response prior to processing the request. If allocation fails, the request is not processed, and the request buffer is reused for the transmission of an "insufficient resources" ATT error response. These handlers don't reuse the request mbuf for an affirmative response because the buffer contains the attribute data that gets passed to the application callback. The application may choose to retain the mbuf during the callback, so the stack.