Can't add more than 6 GATT characteristics

I am using nRF Connect Toolchain v 1.9.1 on a nrf52832 processor and I am not able to access any of the GATT characteristics beyond the 6th characteristic that I define.  The other characteristics are visible but when I try to read from them the system resets.  I have seen other posts that reference setting BLE_GATT_DB_MAX_CHARS but I don't see that defined anywhere and I don't see the ble_gatt_db.h file that they reference.  I also can't find anything in the Kconfig build switches that looks relevant.  How do I increase the maximum number of characteristics allowed?

-Camren

  • I tried it using the nRF Connect app and had the same behavior.  I guess I will do some additional investigation to see if I can pin point why I am getting differenct behavior.  What hardware are you running the embedded code on?  What device are you running the nRF Connect app on?  Thanks.

  • Hi Camren, 
    I was using my phone Samsung Galaxy S10. 

    You may want to check why at the beginning it's only 6 characteristics supported but now you can get to 13. Maybe that can give an indication on what can be changed to support more. 

    But anyway, if possible please try to avoid having too many characteristics. It would slow down the service discovery process and requires more RAM. 

    I would suggest to combine them into less characteristics and you can use one extra byte to identify which type of data you are transmitting. 

Related