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

Scanning with advertising issues

Dear Nordic Team,

Thanks for supporting. 

Currently i am trying to combine ble_app_beacon code with ble_app_uart_c (Scanning and advertising ) both concepts are working good. But when i am going to reinitialize the beacon data process will be hang or reset the mcu. I dont know what i am doing wrong please support anyone. My code attached here ble_app_uart_c.rar

HW : nRF52DK

SDK : SDK15.0

Parents
  • Hi Murugan.

    Did you try to debug your code?

    When I debugged your code it failed in the function sd_ble_gap_adv_set_configure(&m_adv_handle, &m_adv_data, &m_adv_params) with the error code 0x00000008 which is NRF_ERROR_INVALID_STATE.

    This can be trigger because of two things:

    1. It is invalid to provide non-NULL advertising set parameters while advertising.
    2. It is invalid to provide the same data buffers while advertising. To update advertising data, provide new advertising buffers.

    A quick look at your code and it seems that you are missing an advertising handler.

    - Andreas

  • Hi Andreas, Thanks for reply. 

    Simply i want to know the possible for modify beacon advertising data in SDK15.0  when run time? Already i am worked same concept in sdk12.3.0. 

Reply Children
Related