Merge branch 'feature/configure_max_server_profiles_count' into 'master'

esp32: Added an option in menuconfig to configure maximum gatt services

Closes BT-1508

See merge request espressif/esp-idf!12769
This commit is contained in:
Jiang Jiang Jian 2021-04-19 06:31:09 +00:00
commit 920b3a0929
3 changed files with 19 additions and 2 deletions

View File

@ -143,6 +143,16 @@ config BT_BLE_BLUFI_ENABLE
help help
This option can be close when the app does not require blufi function. This option can be close when the app does not require blufi function.
config BT_GATT_SR_PROFILES
int "Max GATT Server Profiles"
depends on BT_GATTS_ENABLE && BT_BLUEDROID_ENABLED
range 1 32
default 8
help
Maximum GATT Server Profiles Count
choice BT_GATTS_SEND_SERVICE_CHANGE_MODE choice BT_GATTS_SEND_SERVICE_CHANGE_MODE
prompt "GATTS Service Change Mode" prompt "GATTS Service Change Mode"
default BT_GATTS_SEND_SERVICE_CHANGE_AUTO default BT_GATTS_SEND_SERVICE_CHANGE_AUTO
@ -945,7 +955,6 @@ menu "BT DEBUG LOG LEVEL"
endmenu #BT DEBUG LOG LEVEL endmenu #BT DEBUG LOG LEVEL
config BT_ACL_CONNECTIONS config BT_ACL_CONNECTIONS
int "BT/BLE MAX ACL CONNECTIONS(1~7)" int "BT/BLE MAX ACL CONNECTIONS(1~7)"
depends on BT_BLUEDROID_ENABLED depends on BT_BLUEDROID_ENABLED

View File

@ -224,6 +224,14 @@
#define UC_CONFIG_BT_GATTS_PPCP_CHAR_GAP FALSE #define UC_CONFIG_BT_GATTS_PPCP_CHAR_GAP FALSE
#endif #endif
#ifdef CONFIG_BT_GATT_MAX_SR_PROFILES
#define UC_CONFIG_BT_GATT_MAX_SR_PROFILES CONFIG_BT_GATT_MAX_SR_PROFILES
#else
#define UC_CONFIG_BT_GATT_MAX_SR_PROFILES 8
#endif
#ifdef CONFIG_BT_GATTS_SEND_SERVICE_CHANGE_MODE #ifdef CONFIG_BT_GATTS_SEND_SERVICE_CHANGE_MODE
#define UC_BT_GATTS_SEND_SERVICE_CHANGE_MODE CONFIG_BT_GATTS_SEND_SERVICE_CHANGE_MODE #define UC_BT_GATTS_SEND_SERVICE_CHANGE_MODE CONFIG_BT_GATTS_SEND_SERVICE_CHANGE_MODE
#else #else

View File

@ -1224,7 +1224,7 @@
#endif #endif
#ifndef GATT_MAX_SR_PROFILES #ifndef GATT_MAX_SR_PROFILES
#define GATT_MAX_SR_PROFILES 8 /* max is 32 */ #define GATT_MAX_SR_PROFILES UC_CONFIG_BT_GATT_MAX_SR_PROFILES
#endif #endif
#ifndef GATT_MAX_APPS #ifndef GATT_MAX_APPS