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

User/custom data in advertising packets?

The BTLE specification does allow user/custom data to be added to the advertising packets. Which field in the advertising data structure is the right place for adding such data? I'd like to avoid hacks, so prefer to do it only where appropriate.

Parents Reply
  • Please note that Pål is a stack developer, and doesn't know the SDK very well. :-) He therefore focuses on how the softdevice API is made.

    If you use the SDK, you're most likely better off looking at Torbjørn's answer below, as the SDK wraps up the setting of advertisement data quite nicely. By using it, you can set the data up in C structs instead of pure data arrays. Take a look at the ble_advdata_t type, and especially its p_service_data_array and p_manuf_specific_data fields.

Children
No Data
Related