mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
fix(ble/bluedroid): Change maximum length of attribute value to 517
(cherry picked from commit df8c1f7a96
)
Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
This commit is contained in:
@@ -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 512 /*!< As same as GATT_MAX_ATTR_LEN. */
|
#define ESP_GATT_MAX_ATTR_LEN 517 /*!< 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.
|
||||||
|
@@ -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 512
|
#define GATT_MAX_ATTR_LEN GATT_MAX_MTU_SIZE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* default GATT MTU size over LE link
|
/* default GATT MTU size over LE link
|
||||||
|
Reference in New Issue
Block a user