NimBLE-Arduino icon indicating copy to clipboard operation
NimBLE-Arduino copied to clipboard

Multiple characteristics limitation

Open Zparq opened this issue 3 years ago • 2 comments

Hi,

Trying to use multiple characteristics but we have an issue when the characteristics are more than 7. If increasing the number of characteristics and activating notification on them, some characteristics stops updating their values. Keeping it below 7 and everything seems ok. Slowing down the pace has no effect nor anything else we tried. The only remaining possible explenation is that there is a limitation in the code somehow around 7 notifying characteristics. If I look at the ESP BLE reference code there is talk about a parameter when creating a service, to increase numHandles=15. This parameter is not present in NimBLE. How and where is this set in NimBLE?

Zparq avatar May 31 '22 13:05 Zparq

As an update. We thought we could issue a warkaround using two services, splitting characteristics on them. This also however does not work. No matter what the number of characteristics is limited to 7 even when there is 4 on one service and 3 on another.

Zparq avatar May 31 '22 13:05 Zparq

There is no handle limit in NimBLE which is why that parameter was removed. What I suspect may be happening is you could be running out of buffers, do you see any errors in the logs?

h2zero avatar May 31 '22 14:05 h2zero