From e985cc521b9219a508baad8420c9cf1bfe4e5d1e 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 5a64736a33ef..fdcbe0c84af8 100644 --- a/components/bt/host/nimble/Kconfig.in +++ b/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. diff --git a/components/bt/host/nimble/nimble b/components/bt/host/nimble/nimble index 814b32a31869..10a21e6c633c 160000 --- a/components/bt/host/nimble/nimble +++ b/components/bt/host/nimble/nimble @@ -1 +1 @@ -Subproject commit 814b32a318696782df92aeec245bdb54d86550ba +Subproject commit 10a21e6c633ceafc06385c1ccb76df210afe6a81 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 f4bf25cc5724..00b030ad719d 100644 --- a/components/bt/host/nimble/port/include/esp_nimble_cfg.h +++ b/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