nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ ble_conn_params_att_mtu_set()

uint32_t ble_conn_params_att_mtu_set ( uint16_t conn_handle,
uint16_t att_mtu )

#include <ble_conn_params.h>

Initiate an ATT MTU exchange procedure for a given connection.

The minimum supported ATT MTU value is 23 (connection's default). The maximum supported ATT MTU value is the minimum of CONFIG_NRF_SDH_BLE_GATT_MAX_MTU_SIZE and 65535.

The SoftDevice needs to be configured to support non-default ATT MTU values by setting CONFIG_NRF_SDH_BLE_GATT_MAX_MTU_SIZE to the maximum ATT MTU value the device shall support.

The ATT MTU exchange procedure is executed asynchronously, and its completion is signalled by the BLE_CONN_PARAMS_EVT_ATT_MTU_UPDATED event.

Parameters
conn_handleHandle to the connection.
att_mtuDesired ATT MTU.
Return values
NRF_SUCCESSOn success.
NRF_ERROR_INVALID_PARAMInvalid ATT MTU or connection handle.