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

Update data of extended advertisement (BLE5)

Hello

I would like to use the extended advertisement feature of BLE 5 and sometimes update the data.

My code works but there is one of your functions which returns me an error code which disturbs a little.
When I call the "ble_advertising_advdata_update(...)" function, there is function "sd_ble_gap_adv_set_configure(...)" which returns error 9 (NRF_ERROR_INVALID_LENGTH).

I notice that if adv_data is smaller than 32 bytes, I have no error but if it is larger then I have error 9 ...

However I use the "extended" functionality so I should be able to exceed 31 bytes of adv_data right?



Parents Reply Children
  • Hi Simonr

    In my application, I used 2 different advertisements. I have a advertisement for BLE5 which countain more data (with extended advertising enabled) and advertise for 1 second. Next, it is a advertisement for BLE4 which advertise for 1 second.

    Everything seems to work but I get error 9 from "sd_ble_gap_adv_set_configure()" function which I don't understand why.
    The first time I call this function I have no problem (to configure the advertisement BLE4 for example) but after that, if I recall this function to configure the advertisement BLE5 (with new parameters) I have this error …

    Can you give me the conditions that can return this error?

    Thank you

Related