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

None of the UUID's change after being altered in the program

I've gone through the forum and I've tried certain "solutions" but none of them work for me.

I've erased my device in SES multiple times, recreated the files for the service, deleted bonds, and nothing will work. 

I can not get the service + characteristic UUIDs to change

Parents
  • Hi Nicholas, 

    Could you show the code where you change the service and characteristic UUID ? 

    Note that you need to call sd_ble_uuid_vs_add() to add a proprietary 128bit UUID to the database. 

  • Hello,

    I do it exactly like it's done in the tutorial on this website. I do call that function; this is on the service_init().

Reply Children
  • Could you please send the full code ? 

    Please make sure you use the char_uuid.type later when you declare the characteristic and service. 


    What was the 0000BBBB and 0000DEAD come from ? 
    Have you made sure the image is compiled and flashed properly, not the old application running ? Please try doing an nrfjprog --eraseall in command line. 

  • I think I found the problem. I reverted to DEBUG mode and manually recompiled the service.c and found that my service and characteristic UUID and handles changed. Probably just compiler optimization skipping over it. Oh well, thank you for trying to help!