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

Reset on_ble_connect when button event

Hello,

my problem is reproducable with this Setup:

  • nRF5-DK with ble_blinky_example (central)
  • nRF5-DK with ble_blinky_example (peripheral)
  • Press Button1 immediately on the peripheral after connecting (LED2 lights up).
  • watch how the peripheral goes back to Advertising (resets)
  • Press Button1 after the Connection is established a while, everything works fine.

 When the button_event_handler() is empty, the devices stay connected. What causes this and how to avoid it?

Kind regards,

DanKA