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

Whats the best way to create custom advertising data

I need to use sd_ble_gap_adv_data_set directly and pass custom advertising data, as I need to maximise space and not send the name etc

I have been using mbed which has functions which allow the advertising data packet to be built by adding individual items e.g. add list of 16 bit services, add manufacturer data etc

But I can't find an equivalent of these in the SDK.

Is the best way, just to dump out the binary data packet that the mbed code created, and then overwrite the manufacturer data that changes for each advertisement, e.g. by building my own unioned packed structure etc

Or is there a "driver / utility" code that will let be build a advertising packet ?

Related