![]() |
Bluetooth LE Profile API document
Bluetooth LE Profile API document Rev.1.00 [May 22, 2020]
|
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... | |
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.
[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. |
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. |