I create an iterrupt when I push button However, I could not manage to start advertising when the button is pushed How can I achieve it? Thank you
I create an iterrupt when I push button However, I could not manage to start advertising when the button is pushed How can I achieve it? Thank you
Please show your code snippet. Are you using app_button API? Do you block CPU in the IRQ handler?
if (event_pins_low_to_high & (1 << BUTTON_0)) { nrf_gpio_pin_clear(LED_1); advertising_init(); advertising_start();
}
This is not an answer, add the information to your question by editing it.
It should be enough to call advertising_start()
inside the interrupt.
What happends? Do you get an error? Have you tried to debug? Please edit your question and elaborate.