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
d214d82075
commit
93dd3fcc5b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue