![]() |
S115 SoftDevice for nRF54LS05 API documentation 10.0.0
|
| 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.
| GATTS ATT_MTU Exchange |
| [in] | conn_handle | The connection handle identifying the connection to perform this procedure on. |
| [in] | server_rx_mtu | Server RX MTU size.
|
| NRF_SUCCESS | Successfully sent response to the client. |
| BLE_ERROR_INVALID_CONN_HANDLE | Invalid Connection Handle. |
| NRF_ERROR_INVALID_STATE | Invalid Connection State or no ATT_MTU exchange request pending. |
| NRF_ERROR_INVALID_PARAM | Invalid Server RX MTU size supplied. |
| NRF_ERROR_TIMEOUT | There has been a GATT procedure timeout. No new GATT procedure can be performed without reestablishing the connection. |