From 8bd3e97b5094046fc505dd3698fbf6702348da19 Mon Sep 17 00:00:00 2001 From: Zhang Hai Peng Date: Tue, 2 Jun 2026 10:23:43 +0800 Subject: [PATCH] docs(bt/bluedroid): add usage note for esp_ble_get_cur_sendable_packets_num (cherry picked from commit 27fc241384784d9bc124c4a6b7e102506636edbe) Co-authored-by: zhanghaipeng --- components/bt/host/bluedroid/api/esp_gatt_common_api.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/bt/host/bluedroid/api/esp_gatt_common_api.c b/components/bt/host/bluedroid/api/esp_gatt_common_api.c index 9254b8d87af..d3348d5a450 100644 --- a/components/bt/host/bluedroid/api/esp_gatt_common_api.c +++ b/components/bt/host/bluedroid/api/esp_gatt_common_api.c @@ -64,6 +64,9 @@ uint16_t esp_ble_get_sendable_packets_num (void) /** * @brief This function is used to query the number of available buffers for the current connection. * When you need to query the current available buffer number, it is recommended to use this API. + * + * @note This API can only be called when a direct connection exists. + * * @param[in] conn_id: current connection id. * * @return