This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Multiple services with same UUID in GATT profile

Other Parts Discussed in Thread: BLE-STACKHi all, I need to advise about GATT profile topology. I need to implement special primary service which can be register for multiple times with the same UUID. I try implement this concept with SimpleBLEPeripheral sample code in ble-stack library. I do this by calling GATTServApp_RegisterService function for two times with the same parameters. When I read GATT profile from client-side only one service with this UUID was published. Could anybody advise me if it is correct behavior or is it bug? I found no information about this case. GATT_DiscPrimaryServiceByUUID function has notice in description (TI_BLE_Vendor_Specific_HCI_guide document) that "The specific primary service may exist multiple times on a server", so I would expect that it is possible that profile may contains primary services with the same UUID. Thank for any advice, Martin Petrik
  • It is possible to have two services with the same UUIDs, but you would need to have the attribute date separated in code. If you call GATTServApp_RegisterService with the same parameters you would be passing the same array of values for the two services, when in fact you would need a separate array for the second service.