kopia lustrzana https://github.com/espressif/esp-idf
esp-idf: Added an option in menuconfig to configure maximum gatt services
Currently Max GATT services count cannot be configured externally and hence user needs to modify code ,everytime the count is to be modified. Added an option in menuconfig to provide a way to user to set the count. Fixes: https://jira.espressif.com:8443/browse/BT-1508pull/6974/head
rodzic
cef3b26a91
commit
6395eae955
|
@ -143,6 +143,16 @@ config BT_BLE_BLUFI_ENABLE
|
|||
help
|
||||
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
|
||||
prompt "GATTS Service Change Mode"
|
||||
default BT_GATTS_SEND_SERVICE_CHANGE_AUTO
|
||||
|
@ -945,7 +955,6 @@ menu "BT DEBUG LOG LEVEL"
|
|||
|
||||
endmenu #BT DEBUG LOG LEVEL
|
||||
|
||||
|
||||
config BT_ACL_CONNECTIONS
|
||||
int "BT/BLE MAX ACL CONNECTIONS(1~7)"
|
||||
depends on BT_BLUEDROID_ENABLED
|
||||
|
|
|
@ -224,6 +224,14 @@
|
|||
#define UC_CONFIG_BT_GATTS_PPCP_CHAR_GAP FALSE
|
||||
#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
|
||||
#define UC_BT_GATTS_SEND_SERVICE_CHANGE_MODE CONFIG_BT_GATTS_SEND_SERVICE_CHANGE_MODE
|
||||
#else
|
||||
|
|
|
@ -1224,7 +1224,7 @@
|
|||
#endif
|
||||
|
||||
#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
|
||||
|
||||
#ifndef GATT_MAX_APPS
|
||||
|
|
Ładowanie…
Reference in New Issue