From 93dd3fcc5b2cb980b2f30e6ddcf5be44f75d3189 Mon Sep 17 00:00:00 2001 From: Joe Finney Date: Mon, 4 Jan 2016 23:47:27 +0000 Subject: [PATCH] microbit: Defined an initial GATT table size of 768 bytes. Reduced GATT table size by 1K. 768 bytes is sufficient to hold the basic micro:bit BLE services (Device Information, DFU, event service). The additional 1K normally held by SoftDevice can then be reused for application heap. --- source/btle/btle.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/btle/btle.cpp b/source/btle/btle.cpp index e35f720..01c31d3 100644 --- a/source/btle/btle.cpp +++ b/source/btle/btle.cpp @@ -104,7 +104,8 @@ error_t btle_init(void) static const bool IS_SRVC_CHANGED_CHARACT_PRESENT = true; ble_enable_params_t enableParams = { .gatts_enable_params = { - .service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT + .service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT, + .attr_tab_size = 768 } }; if (sd_ble_enable(&enableParams) != NRF_SUCCESS) {