Hi,
I'm working on the nrf52832 development board and SDK 16.0. I want to use the Power supply supervisory functionality to detect any type of power failure.
I'm using ble Blinky example with softdevice s132 to test this.
I just want to know, How can I register my event with the soft device.
I have seen many examples regarding the POFWARN at this forum but unable to implement it in code.
err_code = sd_power_pof_enable(POWER_POFCON_POF_Enabled); APP_ERROR_CHECK(err_code); err_code = sd_power_pof_threshold_set(POWER_POFCON_THRESHOLD_V28); APP_ERROR_CHECK(err_code);
but I don't know where how to get the warning NRF_EVT_POWER_FAILURE_WARNING by incorporating with the softdevice. If there is any example stating the procedure or any help will be grateful.
Thanks
Regards,