This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Set Characteristic Handles

To maintain compatibility with our current systems we would like to be force characteristics to be at certain handles, rather than having the soft device assign them sequentially on creation.

Is this possible with the current soft device?

  • No it's not. You could try to fiddle it by adding characteristics in a certain order and adding dummy entries as the softdevice currently starts with its own characteristics and adds in ascending order but it would be a very fragile solution.

  • Hi, RK is right, there is no Soft Device API function to influence how ATT/GATT Server handles are allocated the process is fairly deterministic and it works reliably for several years (from early versions of S110 up to the latest S130/S132/S140). So if you are fine with lower part being populated by mandatory GAP and GATT Services then you can find the procedure how to fill the rest in fairly static and deterministic way. I do agree that it's rather dirty hack then proper solution but can save the day...

Related