In the nRF51 SDK examples, some pass the parameter adv_params off the stack as a locally declared vaiable in the context of the function and some pass static global variables.
For this API, and others, which is correct (or are both valid, i.e., the softdevice makes local copies) ? Local variables which are only valid in the function context or global variables?
Does the softdevice keep the pointers around or does it locally copy the data?