mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
feat(bt): Implement SDK Config SDP size options
Closes https://github.com/espressif/esp-idf/pull/15321
This commit is contained in:
parent
7a5684d478
commit
0d7b0c885c
@ -132,6 +132,26 @@ config BT_SDP_COMMON_ENABLED
|
|||||||
help
|
help
|
||||||
This enables common SDP operation, such as SDP record creation and deletion.
|
This enables common SDP operation, such as SDP record creation and deletion.
|
||||||
|
|
||||||
|
config BT_SDP_PAD_LEN
|
||||||
|
int "BT SDP attributes allocated length (bytes)"
|
||||||
|
depends on BT_CLASSIC_ENABLED
|
||||||
|
default 300
|
||||||
|
range 300 1024
|
||||||
|
help
|
||||||
|
This is the total size of all SDP attributes allowed.
|
||||||
|
Any attributes that exceed this size are truncated.
|
||||||
|
The default value is 300.
|
||||||
|
|
||||||
|
config BT_SDP_ATTR_LEN
|
||||||
|
int "BT SDP attribute allocated length (bytes)"
|
||||||
|
depends on BT_CLASSIC_ENABLED
|
||||||
|
default 400
|
||||||
|
range 400 1024
|
||||||
|
help
|
||||||
|
This is the maximum allowed size for a single SDP attribute.
|
||||||
|
Any attributes that exceed this size are truncated.
|
||||||
|
The default value is 400.
|
||||||
|
|
||||||
menuconfig BT_HFP_ENABLE
|
menuconfig BT_HFP_ENABLE
|
||||||
bool "Hands Free/Handset Profile"
|
bool "Hands Free/Handset Profile"
|
||||||
depends on BT_CLASSIC_ENABLED
|
depends on BT_CLASSIC_ENABLED
|
||||||
|
@ -73,6 +73,20 @@
|
|||||||
#define UC_BT_SDP_COMMON_ENABLED FALSE
|
#define UC_BT_SDP_COMMON_ENABLED FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// SDP Pad Length
|
||||||
|
#ifdef CONFIG_BT_SDP_PAD_LEN
|
||||||
|
#define UC_SDP_MAX_PAD_LEN CONFIG_BT_SDP_PAD_LEN
|
||||||
|
#else
|
||||||
|
#define UC_SDP_MAX_PAD_LEN 300
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// SDP Max Attribute Length
|
||||||
|
#ifdef CONFIG_BT_SDP_ATTR_LEN
|
||||||
|
#define UC_SDP_MAX_ATTR_LEN CONFIG_BT_SDP_ATTR_LEN
|
||||||
|
#else
|
||||||
|
#define UC_SDP_MAX_ATTR_LEN 400
|
||||||
|
#endif
|
||||||
|
|
||||||
//HFP(AG)
|
//HFP(AG)
|
||||||
#ifdef CONFIG_BT_HFP_AG_ENABLE
|
#ifdef CONFIG_BT_HFP_AG_ENABLE
|
||||||
#define UC_BT_HFP_AG_ENABLED CONFIG_BT_HFP_AG_ENABLE
|
#define UC_BT_HFP_AG_ENABLED CONFIG_BT_HFP_AG_ENABLE
|
||||||
|
@ -1658,12 +1658,17 @@
|
|||||||
#endif /* defined(HID_DEV_INCLUDED) && (HID_DEV_INCLUDED==TRUE) */
|
#endif /* defined(HID_DEV_INCLUDED) && (HID_DEV_INCLUDED==TRUE) */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef SDP_MAX_PAD_LEN
|
/* The maximum length, in bytes, of all SDP attributes combined. */
|
||||||
|
#if defined(UC_SDP_MAX_PAD_LEN)
|
||||||
|
#define SDP_MAX_PAD_LEN UC_SDP_MAX_PAD_LEN
|
||||||
|
#elif !defined(SDP_MAX_PAD_LEN)
|
||||||
#define SDP_MAX_PAD_LEN 300
|
#define SDP_MAX_PAD_LEN 300
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* The maximum length, in bytes, of an attribute. */
|
/* The maximum length, in bytes, of an attribute. */
|
||||||
#ifndef SDP_MAX_ATTR_LEN
|
#if defined(UC_SDP_MAX_ATTR_LEN)
|
||||||
|
#define SDP_MAX_ATTR_LEN UC_SDP_MAX_ATTR_LEN
|
||||||
|
#elif !defined(SDP_MAX_ATTR_LEN)
|
||||||
#define SDP_MAX_ATTR_LEN 400
|
#define SDP_MAX_ATTR_LEN 400
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user