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

Fully different with 128 bit UUID for service and characteristic

Hi

I'm creating the customize service and characteristic for my needed, but I need a full 128 bit UUID that which is different in service and each characteristic.

As I follow the tutorial or other example, the service or characteristic are using a base 128 bit UUID, and the service or each character only change the 16 bit UUID parts.

But that's not what I want, is there possible that can customize a fully different UUID for service and characteristic?

Thanks.

Parents
  • Hi,

    It should be possible, yes. For instance in BLE charactersitics a beginners tutorial you should be able in step 2.A to use a different base_uuid than BLE_UUID_OUR_BASE_UUID. Similar for newer versions of the SDK and other examples. (I highly recommend using the latest SDK, at the time of writing that is nRF5 SDK v15.0.0.) Please note that if you increase the number of base UUIDs, then you may also have to increase the value for NRF_SDH_BLE_VS_UUID_COUNT in sdk_config.h.

    Now the thread mentioned by  seems to be for the central side, for database discovery. I will have a look at that one as well.

    Regards,
    Terje

Reply
  • Hi,

    It should be possible, yes. For instance in BLE charactersitics a beginners tutorial you should be able in step 2.A to use a different base_uuid than BLE_UUID_OUR_BASE_UUID. Similar for newer versions of the SDK and other examples. (I highly recommend using the latest SDK, at the time of writing that is nRF5 SDK v15.0.0.) Please note that if you increase the number of base UUIDs, then you may also have to increase the value for NRF_SDH_BLE_VS_UUID_COUNT in sdk_config.h.

    Now the thread mentioned by  seems to be for the central side, for database discovery. I will have a look at that one as well.

    Regards,
    Terje

Children
Related