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

Can you have different base UUID for characteristics in a service?

I've been successfully creating custom services, but there is one case where a device has a service UUID and it's 2 characteristics have completely different UUIDs (all 128 bit). Even amongst the characteristics, the UUIDs are completely different. Though I highly doubted it, is there a way to produce this on nordic?

Parents Reply
  • Yes, If you look at sd_ble_gatts_characteristic_add you can see there is a ble_gatts_attr_t struct. This have a struct where you can define the base UUID and octet 12-13, ble_uuid_t. This is similar to the UUID you provide to sd_ble_gatts_service_add(). The UUID type provided to the characteristic doesn't have to be the same as the one given to the service.

Children
Related