Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Check if a certain service UUID has already been added

Hello!

Related to the addition of new services to the Attributes table, is there a way to check if a certain service UUID has already been added?

This problem arose because I have two modules that are supposed to use the same service, but are unaware of the presence of each other. And when both add the service, it ends up with two services with the same UUID, but one has the data characteristics, while the other one is empty.

What's the best way to approach this situation?

Thanks!

Parents Reply
  • Hello!

    Our application makes use of two software modules (running on the same nRF5 device), that were design to be, well... modular. So they both use the same service, but do not communicate between themselves, so they have no way of knowing if a certain service has already been added to the attribute table. This leads to duplicated entries on the table, as both module initialize the same service.

Children
No Data
Related