i am trying to customize my advertisement data, for that i am using sd_ble_gap_adv_set_configure API, and it is also returning error status 0. But the data what i am giving as a input to this API is not reflected in advertisement.
i am trying to customize my advertisement data, for that i am using sd_ble_gap_adv_set_configure API, and it is also returning error status 0. But the data what i am giving as a input to this API is not reflected in advertisement.
Hi.
Are you sure that you are within the size limit of the advertising data? For normal BLE Advertising, the advertising packet can not exceed 31 bytes.
Can you see the device advertising?
Br,
Joakim
yes, the data is within limits and the device is advertising.
Ok, so the advertising packet isn't updated with your new advertising date?
Are you trying to update the advertising data on the fly, e.g while the device is advertising?
Or do you stop the advertising, update the advertising data and re-start advertising?
Regards,
Joakim
i am trying to update the advertisement data on the fly.
Then the sd_ble_gap_adv_set_configure() should be the correct function to use.
If the function is returning error code 0 - success, I don't know what is wrong.
Maybe you could upload your code here? Atleast the code relevant to the advertising.
Remember that:
In order to update advertising data while advertising, new advertising buffers must be provided.
Best regards,
Joakim Jakobsen