]> granicus.if.org Git - esp-idf/commitdiff
component/bt: enlarge GATT related data size to remove the log of error "GATT Stack...
authorwangmengyang <wangmengyang@espressif.com>
Thu, 24 Nov 2016 07:14:48 +0000 (15:14 +0800)
committerwangmengyang <wangmengyang@espressif.com>
Thu, 24 Nov 2016 07:14:48 +0000 (15:14 +0800)
components/bt/bluedroid/bta/include/bta_gattc_int.h
components/bt/bluedroid/include/bt_target.h
components/bt/bluedroid/stack/include/gatt_api.h

index 47848520dd4e036ff2ddf3b7ea0d9ea6c95c01fa..aac40831285de32694e9769d95e67140576eb32a 100755 (executable)
@@ -78,12 +78,12 @@ typedef UINT16 tBTA_GATTC_INT_EVT;
 
 /* max client application GATTC can support */
 #ifndef     BTA_GATTC_CL_MAX
-#define     BTA_GATTC_CL_MAX    2 // 32
+#define     BTA_GATTC_CL_MAX    4 // 32
 #endif
 
 /* max known devices GATTC can support */
 #ifndef     BTA_GATTC_KNOWN_SR_MAX
-#define     BTA_GATTC_KNOWN_SR_MAX    2 // 10
+#define     BTA_GATTC_KNOWN_SR_MAX    4 // 10
 #endif
 
 #define BTA_GATTC_CONN_MAX      GATT_MAX_PHY_CHANNEL
index 9d5e921f0dc6f70bbe6ca83cfb75543b8adf9371..656af21f9ef3b353b779cc5728f3359d04ebc201 100755 (executable)
 #endif
 
 #ifndef GATT_MAX_SR_PROFILES
-#define GATT_MAX_SR_PROFILES        2 /* max is 32 */
+#define GATT_MAX_SR_PROFILES        4 /* max is 32 */
 #endif
 
 #ifndef GATT_MAX_APPS
-#define GATT_MAX_APPS            2 /* MAX is 32 note: 2 apps used internally GATT and GAP */
+#define GATT_MAX_APPS            4 /* MAX is 32 note: 2 apps used internally GATT and GAP */
 #endif
 
 #ifndef GATT_MAX_PHY_CHANNEL
-#define GATT_MAX_PHY_CHANNEL        2
+#define GATT_MAX_PHY_CHANNEL        4
 #endif
 
 /* Used for conformance testing ONLY */
 /* number of background connection device allowence, ideally to be the same as WL size
 */
 #ifndef GATT_MAX_BG_CONN_DEV
-#define GATT_MAX_BG_CONN_DEV        2 /*MAX is 32*/
+#define GATT_MAX_BG_CONN_DEV        4 /*MAX is 32*/
 #endif
 
 /******************************************************************************
index 1fb0c395141aee1a7fbaff9930f4056b231a680a..339700047c5feadf38f0f0d899852be9d94086f4 100755 (executable)
@@ -135,11 +135,11 @@ typedef UINT16 tGATT_DISCONN_REASON;
 #define GATT_INVALID_CONN_ID        0xFFFF
 
 #ifndef GATT_CL_MAX_LCB
-    #define GATT_CL_MAX_LCB     2 // 22
+    #define GATT_CL_MAX_LCB     4 // 22
 #endif
 
 #ifndef GATT_MAX_SCCB
-    #define GATT_MAX_SCCB       2
+    #define GATT_MAX_SCCB       4
 #endif