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

customizing advertising data in nrf52840 using SDK 16

i have a some XX byte of custom advertising data and we are following the SIG specifications , i want to update my advertisement data which is not part of the structure "ble_advdata_t" which we have to pass to the "ble_advdata_encode".

Please suggest a way to populate my custom data.

Is  it necessary to use "ble_advdata_encode" before "sd_ble_gap_adv_set_configure" to update the advertisement data.

  • Hi

    I'm not sure what exactly you want to include in your advertisement data, but most things should be fine to include, as the only aspect of advertising data that is strictly enforced is the "triplet" format. You need to comply with the [size, type, ] format that is described in the spec.

    We have a great tutorial on BLE advertising that shows how to initialize advertising and scan response with various information like UUIDs, manufacturer-specific data, TX power, etc.

    If you're still struggling, there are a bunch of suggestions on how to customize and update advertising data in this thread.

    Best regards,

    Simon

Related