S145 SoftDevice for nRF54LM20 API documentation 10.0.0
Loading...
Searching...
No Matches

◆ sd_ble_gatts_exchange_mtu_reply()

uint32_t sd_ble_gatts_exchange_mtu_reply ( uint16_t conn_handle,
uint16_t server_rx_mtu )

#include <ble_gatts.h>

Reply to an ATT_MTU exchange request by sending an Exchange MTU Response to the client.

This function is only used to reply to a BLE_GATTS_EVT_EXCHANGE_MTU_REQUEST event.

The SoftDevice sets ATT_MTU to the minimum of:

However, the SoftDevice never sets ATT_MTU lower than BLE_GATT_ATT_MTU_DEFAULT.

Relevant Message Sequence Charts
GATTS ATT_MTU Exchange
Parameters
[in]conn_handleThe connection handle identifying the connection to perform this procedure on.
[in]server_rx_mtuServer RX MTU size.
Return values
NRF_SUCCESSSuccessfully sent response to the client.
BLE_ERROR_INVALID_CONN_HANDLEInvalid Connection Handle.
NRF_ERROR_INVALID_STATEInvalid Connection State or no ATT_MTU exchange request pending.
NRF_ERROR_INVALID_PARAMInvalid Server RX MTU size supplied.
NRF_ERROR_TIMEOUTThere has been a GATT procedure timeout. No new GATT procedure can be performed without reestablishing the connection.