Merge branch 'bugfix/fix_ble_max_attribute_value' into 'master'

fix(ble/bluedroid): Fixed BLE GATT max length of an attribute value

Closes IDFGH-12362

See merge request espressif/esp-idf!30155
pull/13660/head
Island 2024-04-11 19:11:20 +08:00
commit 0545816211
2 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -478,7 +478,7 @@ typedef uint8_t esp_gatt_char_prop_t;
* *
* This definition specifies the maximum number of bytes that a GATT attribute can hold. * This definition specifies the maximum number of bytes that a GATT attribute can hold.
*/ */
#define ESP_GATT_MAX_ATTR_LEN 600 /*!< As same as GATT_MAX_ATTR_LEN. */ #define ESP_GATT_MAX_ATTR_LEN 512 /*!< As same as GATT_MAX_ATTR_LEN. */
/** /**
* @brief Enumerates the possible sources of a GATT service discovery. * @brief Enumerates the possible sources of a GATT service discovery.

Wyświetl plik

@ -139,7 +139,7 @@ typedef UINT16 tGATT_DISCONN_REASON;
/* max length of an attribute value /* max length of an attribute value
*/ */
#ifndef GATT_MAX_ATTR_LEN #ifndef GATT_MAX_ATTR_LEN
#define GATT_MAX_ATTR_LEN 600 #define GATT_MAX_ATTR_LEN 512
#endif #endif
/* default GATT MTU size over LE link /* default GATT MTU size over LE link
@ -701,7 +701,7 @@ extern UINT8 GATT_SetTraceLevel (UINT8 new_level);
** **
** Function GATTS_AddHandleRange ** Function GATTS_AddHandleRange
** **
** Description This function add the allocated handles range for the specifed ** Description This function add the allocated handles range for the specified
** application UUID, service UUID and service instance ** application UUID, service UUID and service instance
** **
** Parameter p_hndl_range: pointer to allocated handles information ** Parameter p_hndl_range: pointer to allocated handles information
@ -720,7 +720,7 @@ extern BOOLEAN GATTS_AddHandleRange(tGATTS_HNDL_RANGE *p_hndl_range);
** NV save callback function. There can be one and only one ** NV save callback function. There can be one and only one
** NV save callback function. ** NV save callback function.
** **
** Parameter p_cb_info : callback informaiton ** Parameter p_cb_info : callback information
** **
** Returns TRUE if registered OK, else FALSE ** Returns TRUE if registered OK, else FALSE
** **
@ -1143,7 +1143,7 @@ extern BOOLEAN GATT_Connect (tGATT_IF gatt_if, BD_ADDR bd_addr, tBLE_ADDR_TYPE b
** **
** Function GATT_CancelConnect ** Function GATT_CancelConnect
** **
** Description This function terminate the connection initaition to a remote ** Description This function terminate the connection initiation to a remote
** device on GATT channel. ** device on GATT channel.
** **
** Parameters gatt_if: client interface. If 0 used as unconditionally disconnect, ** Parameters gatt_if: client interface. If 0 used as unconditionally disconnect,