This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Send data (advertise) packet on Ble when the button is press.

Here I use gpiote and Ble_template_example.

The advertisement code is working fine but now I use button interrupt to send different payload or the button press change the advertising name to something new .

here is the interrupt code I use but it's not working .. not working advertising not working code compile good but when the code enter in ISR The previous ble shut down and the new 

ble instance does not come on nrf connect app 

How do I want this code to work?

1- Advertise ble every time (working)

2-On button press change payload or Advertise name (not working)