Hello everybody.
I'm trying to modify the original firmware that comes with the nRF51822 to make it sweep all of the permitted levels of transmission power. I was able to change the default transmission power by calling the function sd_ble_gap_tx_power_set() from within the advertising_start loop.
What I'm trying to do now is force the beacon to sweep trough all of the permitted power levels while in advertising mode. Digging up the code I have found a declaration in beacon.h:
define APP_BEACON_ADV_TIMEOUT 0 /++< Time for which the device must be advertising in non-connectable mode (in seconds). 0 disables timeout */
My idea is to set a certain value for APP_BEACON_ADV_TIMEOUT, and my guess is that an interrupt will be generated when the timer expires and the device stops advertising. I need help intercepting this interrupt.
Thanks.