#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_files | Null-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
-
-EIO | Failed to determine the active bootloader (B1) slot, s0 or s1. |
-ENOEXEC | Failed to parse file path. |
-EOPNOTSUPP | B1 upgrade is not supported by the build configuration. |
-ENOMSG | No delimeter (space) was found in the file path. |
0 | File path was modified and now points to the correct bootloader file to be downloaded. |