From cde0e6b183e322b5028432d1c027a49b0762df65 Mon Sep 17 00:00:00 2001 From: Paul Szczeanek Date: Tue, 18 Aug 2020 08:59:00 +0100 Subject: [PATCH] allow writes at an offset --- .../libraries/ble-api-implementation/source/GattServerImpl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/connectivity/FEATURE_BLE/libraries/ble-api-implementation/source/GattServerImpl.cpp b/connectivity/FEATURE_BLE/libraries/ble-api-implementation/source/GattServerImpl.cpp index fe02337830..45de631519 100644 --- a/connectivity/FEATURE_BLE/libraries/ble-api-implementation/source/GattServerImpl.cpp +++ b/connectivity/FEATURE_BLE/libraries/ble-api-implementation/source/GattServerImpl.cpp @@ -329,6 +329,7 @@ ble_error_t GattServer::insert_characteristic_value_attribute( } if (properties & WRITABLE_PROPERTIES) { attribute_it->settings |= ATTS_SET_WRITE_CBACK; + attribute_it->settings |= ATTS_SET_ALLOW_OFFSET; } if (value_attribute.getUUID().shortOrLong() == UUID::UUID_TYPE_LONG) { attribute_it->settings |= ATTS_SET_UUID_128;