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

Are the whitelist and peer address copied into sd_ble_gap_adv_start?

Classic C documentation issue. Are the values that are passed by pointer (p_peer_address and p_whitelist) to sd_ble_gap_adv_start() copied into that function, or do they need to remain valid until advertising stops?

I am assuming the answer is that they are copied, but there's no way to know.

I wish this were encoded into the C language somehow because nobody ever documents it and it must be the source of an unimaginable number of bugs.

Related