Przeglądaj źródła

Nimble: Configurable option to modify max gatt procedures allowed for GATT
client

Rahul Tank 3 lat temu
rodzic
commit
2be66a6151

+ 7 - 0
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

+ 1 - 1
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