pub unsafe extern "C" fn nrf_modem_delta_dfu_update() -> c_int
Expand description

Schedule execution of firmware update.

The modem needs to reboot to run the new firmware. To reboot the modem, uninitialize the Modem library and reinitialize it using the * nrf_modem_deinit - and * nrf_modem_init - respectively.

@note The final result of the update operation is reported via

  • nrf_modem_init - .

Returns 0 On success. Returns -NRF_EPERM The Modem library is not initialized. Returns -NRF_ENOMEM Not enough shared memory for this request. Returns -NRF_ESHUTDOWN Modem was shut down. @returns A positive error code from @ref nrf_modem_delta_dfu_errors, if the modem refused the operation.