From a5b20d3d52a7a29cea089abc5b2444091fc9bcb1 Mon Sep 17 00:00:00 2001 From: "isha.pardikar@espressif.com" Date: Fri, 17 Mar 2023 14:24:28 +0530 Subject: [PATCH] NimBLE: Added support for writing data more than BLE_ATT_ATTR_MAX_LEN --- components/bt/host/nimble/Kconfig.in | 6 ++++++ components/bt/host/nimble/nimble | 2 +- components/bt/host/nimble/port/include/esp_nimble_cfg.h | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/components/bt/host/nimble/Kconfig.in b/components/bt/host/nimble/Kconfig.in index d2ee91f73e..957671fdef 100644 --- a/components/bt/host/nimble/Kconfig.in +++ b/components/bt/host/nimble/Kconfig.in @@ -674,3 +674,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. diff --git a/components/bt/host/nimble/nimble b/components/bt/host/nimble/nimble index 9fd023d47f..0fc6282a3f 160000 --- a/components/bt/host/nimble/nimble +++ b/components/bt/host/nimble/nimble @@ -1 +1 @@ -Subproject commit 9fd023d47f3b77961407939d8e63888bace167ac +Subproject commit 0fc6282a3fa9a1368d4f014946fb59db9067e838 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 8ff2c26c26..a56033f065 100644 --- a/components/bt/host/nimble/port/include/esp_nimble_cfg.h +++ b/components/bt/host/nimble/port/include/esp_nimble_cfg.h @@ -608,6 +608,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