BLE: limited number of services and characteristics

Paolo_g
Posts: 2
Joined: Thu Sep 27, 2018 10:54 am

BLE: limited number of services and characteristics

Postby Paolo_g » Thu Sep 27, 2018 12:22 pm

Hi,
I'm using BLE on ESP32.
The ESP32 board is my server.
I have a problem: the number of services is limited to 7, and also the number of characteristics is limited to 7.
If I try to use more services or characteristics the client (the smartphone or another ESP32 board) can't see them.
Is it possible to use more services and characteristics?
I have tried to see if there are some #define in the .h files that limit this number, but I don't have found anything.
Thank you

chegewara
Posts: 483
Joined: Wed Jun 14, 2017 9:00 pm

Re: BLE: limited number of services and characteristics

Postby chegewara » Thu Sep 27, 2018 2:11 pm


Paolo_g
Posts: 2
Joined: Thu Sep 27, 2018 10:54 am

Re: BLE: limited number of services and characteristics

Postby Paolo_g » Sun Sep 30, 2018 1:55 pm

Thank you very much!
If other people are interested in this: the parameter numHandles of the function createService allows you to specify the number of characteristics.
Just out of curiosity: is it possible to change also the number of services?

chegewara
Posts: 483
Joined: Wed Jun 14, 2017 9:00 pm

Re: BLE: limited number of services and characteristics

Postby chegewara » Sun Sep 30, 2018 4:46 pm

There is no services number limit. Only limit is handles number which is 0xFFFF.

Who is online

Users browsing this forum: Google [Bot] and 8 guests