Hi, I have several services running in the application. one of them is DFU.
I have to hide / stop DFU service for example when the SOC of the battery is less than 50%. And show/start it again when the user plugs in the charger, for example
here is part of my code with DFU init:
...
ble_dfu_buttonless_init_t dfus_init = {0};
dfus_init.evt_handler = ble_dfu_evt_handler;
err_code = ble_dfu_buttonless_init(&dfus_init);
APP_ERROR_CHECK(err_code);
...