choice of handles in GATT DB structure

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

what are the rules in choosing handles when adding elements to my GATT database structure???

other BLE stacks that i have worked with never gave me the choice of designating a handle ID when adding a service or characteristic, so i'm seeking guidance on how to make the choice....

in many of these sample apps, it would appear that there are "gaps" (no pun intended) between the handles of consecutive items in the GATT database....

if i have a legacy custom profile (implemented on another platform) whose handle values i know, can i essentially force the same assignments here???  

0 Likes
1 Solution
VictorZ_46
Employee
Employee
5 comments on blog 25 sign-ins 250 likes received

2 rules.

- No duplicate handles. 

- All handles should be in ascending order. 

1, 2, 3, 4 is ok.  100, 200, 300, 400.  is ok.

You can force existing handles as long as they follow the rules (and I am pretty sure they should).

View solution in original post

1 Reply
VictorZ_46
Employee
Employee
5 comments on blog 25 sign-ins 250 likes received

2 rules.

- No duplicate handles. 

- All handles should be in ascending order. 

1, 2, 3, 4 is ok.  100, 200, 300, 400.  is ok.

You can force existing handles as long as they follow the rules (and I am pretty sure they should).