When I try to register for callbacks for either read or write notifications to my GATT database, I get a failure if I have more than 10 items in either notification list.
This returns a gBleInvalidParameter_c result:
bleResult_t result = GattServer_RegisterHandlesForWriteNotifications (11, gattWriteNotificationHandles);
and this gGattDbSuccessSuccess:
bleResult_t result = GattServer_RegisterHandlesForWriteNotifications (10, gattWriteNotificationHandles);
I can't find anyplace in the documentation that mentioned this limit. Attribute array has plenty of entries and the contents do not appear to affect the behavior. SDK 2.2 BLE 1.5.3
Is there a way around this or am I limited to just 10 handles total for read/write notifications?
Found where the array limit is set. ble_config.h:
/*! Maximum number of handles that can be registered for write notifications. */
#ifndef gMaxWriteNotificationHandles_c
#define gMaxWriteNotificationHandles_c 10
#endif/*! Maximum number of handles that can be registered for read notifications. */
#ifndef gMaxReadNotificationHandles_c
#define gMaxReadNotificationHandles_c 10#endif
Hello,
Did you try modifying it? Did you have troubles while doing so? Please consider that you will need t take care of the memory in case you decide to modify it as it will store more values in memory.
Regards,
Estephania