How to create 16-bit UUIDs For GATT servers and characteristics using nRF Connect SDK

Hi Team,

I want to create 2 UUIDs for 2 GATT Servers

I am using 128-bit UUIDs for creating but using 128-bit UUIDs I can't create more servers its showing error (too big advertisement err -22)

So I decided to create 16-bit UUIDs

please help 

Thank you

  • Hi 

    Are you trying to advertise both the 128-bit UUID's? 

    The advertise packet is limited to 31 bytes only, and this only leaves room for a single 128-bit UUID. In total a single 128-bit UUID will occupy 18 bytes in the advertise packet (16 bytes for the UUID and 2 bytes for the advertise field header). 

    If you split the two UUID's between the advertise and scan response packets you should be able to fit both, but it will limit how much other data you are able to include in the advertisement. 

    Best regards
    Torbjørn

Related