This function gets the current MTU used in GATT communication.
Both GATT server and GATT Client can use this function.
The result of this API call is returned by a return value.
- Parameters
-
[in] | conn_hdl | Connection handle identifying the GATT Server or the GATT Client. |
[in] | p_mtu | The Current MTU. Before MTU exchange, this parameter is 23 bytes.
After MTU exchange, this parameter is the negotiated MTU. |
- Return values
-
BLE_SUCCESS(0x0000) | Success |
BLE_ERR_INVALID_PTR(0x0001) | The mtu parameter is NULL. |
BLE_ERR_INVALID_HDL(0x000E) | The GATT Server or the GATT Client specified by conn_hdl was not found. |