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
  • The only way how to change GATT Server objects with Nordic Soft Device is to "restart" it (typically softreset of the chip is faster way). UUIDs are assumed to be static identifiers.

  • Thank You...

    let me explain in more details...the flow is like....

    1. UART_setup();

    2. ble_init() { // Initialize. APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, false); //uart_init();

      buttons_leds_init(&erase_bonds); ble_stack_init(); gap_params_init(); services_init(); advertising_init(); conn_params_init(); }

    3. uint32_t ble_advertise() { uint32_t err_code;

       	err_code = ble_advertising_start(BLE_ADV_MODE_FAST);
       	APP_ERROR_CHECK(err_code);
      
       return err_code;
      

    }

    now in re advertise which function i call..?

    please explain me....

Reply
  • Thank You...

    let me explain in more details...the flow is like....

    1. UART_setup();

    2. ble_init() { // Initialize. APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, false); //uart_init();

      buttons_leds_init(&erase_bonds); ble_stack_init(); gap_params_init(); services_init(); advertising_init(); conn_params_init(); }

    3. uint32_t ble_advertise() { uint32_t err_code;

       	err_code = ble_advertising_start(BLE_ADV_MODE_FAST);
       	APP_ERROR_CHECK(err_code);
      
       return err_code;
      

    }

    now in re advertise which function i call..?

    please explain me....

Children
No Data
Related