nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ fota_download_b1_file_parse()

int fota_download_b1_file_parse ( char * s0_s1_files)

#include <include/net/fota_download.h>

Parse and modify the provided file path so that it points to the bootloader file that should be used for a bootloader (B1) FOTA update.

Parameters
s0_s1_filesNull-terminated file path that may contain two files separated by a space. On successful return of this function, this file path will be modified.
Return values
-EIOFailed to determine the active bootloader (B1) slot, s0 or s1.
-ENOEXECFailed to parse file path.
-EOPNOTSUPPB1 upgrade is not supported by the build configuration.
-ENOMSGNo delimeter (space) was found in the file path.
0File path was modified and now points to the correct bootloader file to be downloaded.