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

Is it possible to have two GATT services which one is NUS and the other is custom service ??

Hi,

currently, i'm developing nRF52832 chip and I trying to use two GATT services.

I want to know about that "Can I use my custom services with Nordic Uart Service"?

I've just tried that work by combining each example in "SDK example", but it wasn't working.

if any one know about this issue, please reply me.. Confused

Thanks..

With the best regards

Daewoong Kim

  • Hi Daewoong

    Yes, you can combine multiple proprietary services if you like. 

    The critical part is that you change the NRF_SDH_BLE_VS_UUID_COUNT parameter in sdk_config.h to account for the number of 128-bit UUID's you need. 

    The Nordic UART service requires one, and your custom service will require one (or more) 128-bit UUID's as well. 

    After changing this number you will also need to increase the amount of memory allocated to the SoftDevice, as the SoftDevice needs more RAM to store the UUID's. 

    Best regards
    Torbjørn

Related