I am using SDK15.0 and added the functionality of nrf_storage into the ble_app_uart in order to store the results of scan (which are kept during run time in an array in RAM).
I want to write the array to flash every 24 hours.
The command nrf_fstorage_write is working OK if it is in the main or in the uart_event_handle
But it doesn't work (Error) if it is inside the App timer handler (which is counting for 24h)
I cannot put a flag in the timer_handler and poll the flag in the main (as it was suggested before) since the polling is power consuming.
How can I do it?