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

Device Name Change

Hi all ,

I'm using SDK 15.0, working on ble_uart.c

I need to change the DEVICE  NAME of the  frequently.

Can you please tell me how to change the the device name and store it in a buffer.

If you provide a example code, it will be a great help.

Thanks and Regards,

 Venu

  • Hi all, 

    I solved this issue with the following steps:

    1)You must to call the sd_ble_gap_adv_stop() function.

    2)Then you would change any config data as you want using for example sd_ble_gap_adv_set_configure(&m_adv_handle, &m_adv_data, &adv_params);

    3) And finally, you must to call sd_ble_gap_adv_start() function to initialize the BLE.

    All of this is used in SDK 15.0.

    Thanks

    Abian.

  • hi Abian   could  provide  full  example  of this tree function

    i am suing softdevce 112  on nrf52801 rigago mudule

    sd_ble_gap_adv_stop(missing param) 

    SVCALL(SD_BLE_GAP_ADV_STOP, uint32_t, sd_ble_gap_adv_stop(uint8_t adv_handle));

    where in the code   m_adv_data  and adv_param  ?

    sd_ble_gap_adv_set_configure(&m_adv_handle, &m_adv_data, &adv_params);

    sd_ble_gap_adv_start(missing param )

Related