Procházet zdrojové kódy

Merge branch 'feature/write_blob' into 'master'

NimBLE: Added support for writing data more than BLE_ATT_ATTR_MAX_LEN

See merge request espressif/esp-idf!22808
Rahul Tank před 2 roky
rodič
revize
e32083c859

+ 6 - 0
components/bt/host/nimble/Kconfig.in

@@ -655,3 +655,9 @@ config BT_NIMBLE_LEGACY_VHCI_ENABLE
     default n
     help
         This option is used to distinguish whether a previous version of VHCI is being used
+
+config BT_NIMBLE_BLE_GATT_BLOB_TRANSFER
+    bool "Blob transfer"
+    help
+        This option is used when data to be sent is more than 512 bytes. For peripheral role,
+        BT_NIMBLE_MSYS_1_BLOCK_COUNT needs to be increased according to the need.

+ 1 - 1
components/bt/host/nimble/nimble

@@ -1 +1 @@
-Subproject commit 814b32a318696782df92aeec245bdb54d86550ba
+Subproject commit 10a21e6c633ceafc06385c1ccb76df210afe6a81

+ 4 - 0
components/bt/host/nimble/port/include/esp_nimble_cfg.h

@@ -615,6 +615,10 @@
 #define MYNEWT_VAL_BLE_GATT_WRITE_RELIABLE (MYNEWT_VAL_BLE_ROLE_CENTRAL)
 #endif
 
+#ifndef MYNEWT_VAL_BLE_GATT_BLOB_TRANSFER
+#define MYNEWT_VAL_BLE_GATT_BLOB_TRANSFER (CONFIG_BT_NIMBLE_BLE_GATT_BLOB_TRANSFER)
+#endif
+
 #ifndef MYNEWT_VAL_BLE_HOST
 #define MYNEWT_VAL_BLE_HOST (1)
 #endif