QN908x limit on GATT Read/Write Notifications?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

QN908x limit on GATT Read/Write Notifications?

1,366 次查看
joseraffucci
Contributor IV

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?

0 项奖励
回复
2 回复数

1,240 次查看
joseraffucci
Contributor IV

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

0 项奖励
回复

1,240 次查看
estephania_mart
NXP TechSupport
NXP TechSupport

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 

0 项奖励
回复