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

Configurable UUID

Hello,

I want to change the 16-bit of 128-bit UUID at runtime. is this possible?

let me explain...

1)the first both central and peripheral set 128-bit UUID like this....

6e400000-b5a3-f393-e0a9-e50e24dcca9e

  1. now after connection the central send 16-bit service UUID to peripheral this will overwrite too 0x0000 number and disconnect from central and than after advertise with newer one service UUID like this..

6e400004-b5a3-f393-e0a9-e50e24dcca9e

is this possible?

please correct me if i m wrong..

thank you..

Parents Reply
  • Nom that's not the correct way, you cannot call BLE init once you already did it. You need to reset the whole chip or to disable Soft Device and enable it again. I also suspect that these BLE_INIT and BLE_ADVERTISE boxes are some high level function call which really are in your code. If so then please understand that I have no clue what these blackboxes do and so I cannot advice on sequence or parameters of these functions.

Children
No Data
Related