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

UUID change on the fly

Hi,

I have a 128bit UUID on the ad block which I need to change on the fly to another 128bit UUID.

I tried different solutions and searched for a good example, however I have not found one that would be a clear example how to do it.
I am not very proficient in C, so I have some issues with the details.

The operation should be able to be done even if a client is connected.
Some examples I tried make an error 18 if a connection is active.

Would there be a good and clear code example that will make:
1.  Stop advertising
2.  End and clear any connection if active
3.  Change 128bit UUID to another 128bit UUID in advertisement
4.  Start advertising with a new 128bit UUID

Thank you!

Parents Reply
  • Hi,

    Thank you for the info.

    I checked through the whole project, however I do not see there any method for changing which 128bit UUID is being advertised at a time.

    The project has different services which have different UUIDs.

    I have different UUIDs too, of which only one at a time I need to advertise, and depending on state, I have to change the UUID and then advertise a different UUID.

    How to do this without resetting the device, is what I am looking for.

    Thanks!

Children
No Data
Related