RA Flexible Software Package Documentation  Release v5.2.0

 

Functions

ble_status_t R_BLE_GATT_GetMtu (uint16_t conn_hdl, uint16_t *p_mtu)
 This function gets the current MTU used in GATT communication. More...
 

Detailed Description

Function Documentation

◆ R_BLE_GATT_GetMtu()

ble_status_t R_BLE_GATT_GetMtu ( uint16_t  conn_hdl,
uint16_t *  p_mtu 
)

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_hdlConnection handle identifying the GATT Server or the GATT Client.
[in]p_mtuThe 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.