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.

CC2640R2F: Update/change UUID dynamically

Part Number: CC2640R2F

Dear Experts,

is it possible to update/change UUID of a service dynamically? Any limitations wrt client vs server?

I would like to use a HW or SW trigger to change/updated a UUID of particular services. Is this feasible and/or allowed?

Do I need to work with Service Changed Characteristic to make sure other nodes, connected to me are getting notified and do the discovery again?

Any hints how to do this in code would be appreciated.

Many thanks and best regards,

Rogerg

  • Hello Rogerg,

    Changing the UUID of a service is less common behavior in BLE so you would need make sure your client is able to handle this properly. You would also need to remove, modify and add the service to change the UUID - while not in a connection. See GATTServApp_DelService in gattservapp.h to delete the service.

    iOS expects the Service Changed indication when the server has changed but sending this indication only occurs on bonded ("paired") connections. If you are not pairing with the iOS client, you'll need to manually refresh the cache on the iOS device.

    Best wishes