Hello,
We do not want our beacon on at all times. I suppose our need below has been asked before.
Is there a sample snippit of code, or a document on ble_app_beacon to help us execute this small main.c change?
ble_stack_init();
advertising_init();
nrf_gpio_cfg_input(BSP_BUTTON_0, NRF_GPIO_PIN_PULLUP);
nrf _gpio_cfg_input(BSP_BUTTON_1, NRF_GPIO_PIN_PULLUP);
// Some code to setup wake up event
While (1)
{
System Off // not sure on detail for this for just detecting the switch event2
GPIO Event //wait for switch press event on Beacon onboard switches
System ON
run advertising_start();
wait 1000 ms
}
We are compiling with nRF51822 SmartBeacon pca10028_nrf51422_xxac_s130
Thanks, we are just very new to this code, and would like to streamline the time to get this one change made. Any help would be appreciated.
Thanks to all