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

Multiple custom service tutorial

Hi is there an available tutorial for adding multiple custom services for SDK v12 or SDK v15? I've managed to successfully create & use one custom service using bjornspockeli's Github tutorial, but right now am having trouble adding multiple custom services. 

It seems like there are no tutorials available, but these are my most pertinent questions that I was hoping a tutorial could answer for me:

1. I've also tried searching on the forum but it seems like most previous posts have asked about using multiple vendor-specific (128-bit base) UUIDs for multiple custom services. I know that you need to call sd_ble_uuid_vs_add() to add the 128-bit base UUID before you call sd_ble_gatts_service_add() to add the custom service UUID. But do I need a different 128-bit base UUID for each custom service? I assumed that I could reuse the same 128-bit base UUID for different custom services.

2. Do I also need a separate NRF_SDH_BLE_OBSERVER() for each custom service or do I just need to use one NRF_SDH_BLE_OBSERVER() for all custom services? 

Parents Reply Children
Related