Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 6 months ago.
Why GattService.h restrict Characteristics to 5
I opened GaatService.h and noticed
#define BLE_SERVICE_MAX_CHARACTERISTICS (5) //Some other code GattCharacteristic* characteristics[BLE_SERVICE_MAX_CHARACTERISTICS];
Why characteristics are limited max to 5?
I am using nordic nRF51822 mbed mkit board. I also searched on nordic forum.
https://devzone.nordicsemi.com/index.php/sd-characteristics-per-service-limit
Which clearly indicates that there is no limit characteristics per service.
Question relating to:
1 Answer
10 years, 6 months ago.
It's an arbitrary limit to cap memory usage, but with some trial and error you are free to change the number depending on how much SRAM the rest of your program uses.