Page 1 of 1

Increasing BTA_GATTC_NOTIF_REG_MAX

Posted: Fri Jan 08, 2021 7:48 pm
by BB1964
I'm currently working on a BLE Gatt client to work with my BLE Gatt server using IDF v4.1.

For my client application I am getting the following message 4 times :
E (6741) BT_APPL: Max Notification Reached, registration failed.

I found the following lines in bta_gattc_int.h.
#ifndef BTA_GATTC_NOTIF_REG_MAX
#define BTA_GATTC_NOTIF_REG_MAX 7//15
#endif
I'm assuming since I'm registering 11 notify events, this explains the message appearing 4 times.

I didn't want to change this value directly because
1. I didn't know if this value should not exceed 7 for some reason I don't understand
2. If it can be increased, I didn't want to have to remember to change it when I updated the IDF.

Can this value be increased? If so, is there a better way then modifying this file directly that I am missing?

Re: Increasing BTA_GATTC_NOTIF_REG_MAX

Posted: Sat Jan 09, 2021 7:33 am
by chegewara
You can open feature request on github to add this as parameter in menuconfig.