I`m using Ble Mesh Light and Light Switch examples (Gen OnOff models) in two nrf52840 Dongles. The default configuration of the button is that when I pressed the button in the Light Switch Dongle the LED in the Light Dongle turns on. When I take my finger off the button the LED in Light Dongle is still on, but I want it to turn off when I am not pressing the button (toggle button I think).
I have change the flags in gpio_pin_interrupt_configure in the dk_buttons_and_leds.c to GPIO_INT_EDGE_BOTH but nothing has changed.
Do you know how I could do it?.