S115 SoftDevice for nRF54L15/nRF54L10/nRF54L05 API documentation 10.0.0
Loading...
Searching...
No Matches

◆ sd_ble_user_mem_reply()

uint32_t sd_ble_user_mem_reply ( uint16_t conn_handle,
ble_user_mem_block_t const * p_block )

#include <ble.h>

Provide a user memory block.

Note
This call can only be used as a response to a BLE_EVT_USER_MEM_REQUEST event issued to the application.
Parameters
[in]conn_handleConnection handle.
[in]p_blockPointer to a user memory block structure or NULL if memory is managed by the application.
Relevant Message Sequence Charts
GATTS Queued Writes: Peer cancels operation
GATTS Queued Writes: App handled, one or more attributes require authorization
GATTS Queued Writes: App handled, no attributes require authorization
GATTS Queued Writes: Stack handled, one or more attributes require authorization
GATTS Queued Writes: Stack handled, no attributes require authorization
GATTS Queued Writes: Prepare Queue Full
Return values
NRF_SUCCESSSuccessfully queued a response to the peer.
NRF_ERROR_INVALID_ADDRInvalid pointer supplied.
NRF_ERROR_BUSYThe stack is busy, process pending events and retry.
BLE_ERROR_INVALID_CONN_HANDLEInvalid Connection Handle.
NRF_ERROR_INVALID_LENGTHInvalid user memory block length supplied.
NRF_ERROR_INVALID_STATEInvalid Connection state or no user memory request pending.