![]() |
nRF Connect SDK Bare Metal API 2.0.99
|
| 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.
| conn_handle | Handle to the connection. |
| att_mtu | Desired ATT MTU. |
| NRF_SUCCESS | On success. |
| NRF_ERROR_INVALID_PARAM | Invalid ATT MTU or connection handle. |