I am using the simple_broadcaster example in beacon mode and would like to adjust the advertising interval according to the voltage level.
I tried calling:
GAP_SetParamValue(TGAP_LIM_DISC_ADV_INT_MIN, 5*160);
GAP_SetParamValue(TGAP_LIM_DISC_ADV_INT_MAX, 5*160);
GAP_SetParamValue(TGAP_GEN_DISC_ADV_INT_MIN,5*160);
GAP_SetParamValue(TGAP_GEN_DISC_ADV_INT_MAX, 5*160);
from SimpleBLEBroadcaster_taskFxn() but this did not work. The Bluetooth Advertising interval was measured using the current consumption on an oscilloscope.
Is there a proper way of adjusting the advertising interval?