Skip to content

nrf_ble: Expose configuration of max characteristics and descriptors #7958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ class nRF5xGattServer : public GattServer


private:
const static unsigned BLE_TOTAL_CHARACTERISTICS = 20;
const static unsigned BLE_TOTAL_DESCRIPTORS = 8;
const static unsigned BLE_TOTAL_CHARACTERISTICS = NRF_SDH_BLE_TOTAL_CHARACTERISTICS;
const static unsigned BLE_TOTAL_DESCRIPTORS = NRF_SDH_BLE_TOTAL_DESCRIPTORS;
const static unsigned TOTAL_CONCURRENT_LONG_WRITE_REQUESTS = 3;

private:
Expand Down
10 changes: 10 additions & 0 deletions features/FEATURE_BLE/targets/TARGET_NORDIC/mbed_lib.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
"help": "select whether to include the Service Changed characteristic in the GATT Server",
"value": "1",
"macro_name": "NRF_SDH_BLE_SERVICE_CHANGED"
},
"max_characteristics": {
"help": "Sets the maximum number of characteristics that can be registered",
"value": "20",
"macro_name": "NRF_SDH_BLE_TOTAL_CHARACTERISTICS"
},
"max_descriptors": {
"help": "Sets the maximum number of descriptors that can be registered",
"value": "8",
"macro_name": "NRF_SDH_BLE_TOTAL_DESCRIPTORS"
}
}
}