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

problem with custom use of 16bit UUID GATT service

Hi, I develop device for custom location service based on BLE. Now I'm working with nRF52 Development kit v1.1.0, nRF52832, SDK v15.0.0.

I have a problem with adding 16bit UUID GATT service (0x2B01) without custom base UUID. (I know that's not recommended by BT SIG, but I use it for compartibility with existing system. As I've got 0x2B01 is reserved but not  assigned).

sd_ble_gatts_service_add works without error, but when I start to add characteristics sd_ble_gatts_characteristic_add returns NRF_ERROR_INVALID_PARAM. I don't understand if the error is caused by using that UUID or I made some mistake.

So questions are:

Does softdevice make some special validation of characteristics if I use UUID from assigned (and maybe reserved) range?

Is it possible with softdevise to use that UUID (0x2B01) for my custom service?

Thank you in advance for your answers, have a good day!

  • Hi.

    Answear to your questions:

    Does softdevice make some special validation of characteristics if I use UUID from assigned (and maybe reserved) range?

    The SoftDevice does not do an validation check on that UUID.

    Is it possible with softdevise to use that UUID (0x2B01) for my custom service?

    Yes.

    The error code NRF_ERROR_INVALID_PARAM is not related to the validation check.

    - Andreas

Related