From 2be66a6151c4fa4dc0da57f10950f544615fd00e Mon Sep 17 00:00:00 2001 From: Rahul Tank Date: Fri, 22 Jul 2022 17:26:39 +0530 Subject: [PATCH] Nimble: Configurable option to modify max gatt procedures allowed for GATT client --- components/bt/host/nimble/Kconfig.in | 7 +++++++ components/bt/host/nimble/port/include/esp_nimble_cfg.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/components/bt/host/nimble/Kconfig.in b/components/bt/host/nimble/Kconfig.in index a668930632..ffdedab576 100644 --- a/components/bt/host/nimble/Kconfig.in +++ b/components/bt/host/nimble/Kconfig.in @@ -312,6 +312,13 @@ menu "Memory Settings" endmenu +config BT_NIMBLE_GATT_MAX_PROCS + int "Maximum number of GATT client procedures" + depends on BT_NIMBLE_ENABLED + default 4 + help + Maximum number of GATT client procedures that can be executed. + config BT_NIMBLE_HS_FLOW_CTRL bool "Enable Host Flow control" depends on BT_NIMBLE_ENABLED diff --git a/components/bt/host/nimble/port/include/esp_nimble_cfg.h b/components/bt/host/nimble/port/include/esp_nimble_cfg.h index 6c3a53c872..ca65484ff9 100644 --- a/components/bt/host/nimble/port/include/esp_nimble_cfg.h +++ b/components/bt/host/nimble/port/include/esp_nimble_cfg.h @@ -540,7 +540,7 @@ #endif #ifndef MYNEWT_VAL_BLE_GATT_MAX_PROCS -#define MYNEWT_VAL_BLE_GATT_MAX_PROCS (4) +#define MYNEWT_VAL_BLE_GATT_MAX_PROCS (CONFIG_BT_NIMBLE_GATT_MAX_PROCS) #endif #ifndef MYNEWT_VAL_BLE_GATT_NOTIFY