Enable BLE FOTA DFU MCUBOOT in Zephyr only on button press

Greetings,

I would like to enable triggered firmware update option (dfu icon to be shown and to work) in NRF Connect android app on button press or uart. I followed the nordic academy example about  ble dfu update but i want to enable it only on button press. Where can i follow an example for this ?

Best regards.

Related