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.master
parent
ce50b67bb4
commit
e38a6b7e5f
|
@ -102,7 +102,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) {
|
||||
|
|
Loading…
Reference in New Issue