S115 SoftDevice for nRF54LV10 API documentation 10.0.0
Loading...
Searching...
No Matches

◆ sd_ble_gattc_exchange_mtu_request()

uint32_t sd_ble_gattc_exchange_mtu_request ( uint16_t conn_handle,
uint16_t client_rx_mtu )

#include <ble_gattc.h>

Start an ATT_MTU exchange by sending an Exchange MTU Request to the server.

The SoftDevice sets ATT_MTU to the minimum of:

However, the SoftDevice never sets ATT_MTU lower than BLE_GATT_ATT_MTU_DEFAULT.

Events generated
BLE_GATTC_EVT_EXCHANGE_MTU_RSP
Relevant Message Sequence Charts
GATTC ATT_MTU Exchange
Parameters
[in]conn_handleThe connection handle identifying the connection to perform this procedure on.
[in]client_rx_mtuClient RX MTU size.
Return values
NRF_SUCCESSSuccessfully sent request to the server.
BLE_ERROR_INVALID_CONN_HANDLEInvalid connection handle.
NRF_ERROR_INVALID_STATEInvalid connection state or an ATT_MTU exchange was already requested once.
NRF_ERROR_INVALID_PARAMInvalid Client RX MTU size supplied.
NRF_ERROR_BUSYClient procedure already in progress.
NRF_ERROR_TIMEOUTThere has been a GATT procedure timeout. No new GATT procedure can be performed without reestablishing the connection.