![]() |
nRF Connect SDK API 3.3.99
|
| int fota_download_with_host_cfg | ( | const char * | host, |
| const char * | file, | ||
| int | sec_tag, | ||
| uint8_t | pdn_id, | ||
| size_t | fragment_size, | ||
| const enum dfu_target_image_type | expected_type, | ||
| const struct downloader_host_cfg * | host_cfg ) |
#include <include/net/fota_download.h>
Download the given file with the specified image type from the given host.
Identical to fota_download_start_with_image_type(), but with additional host configuration options.
| host | Name of host to start downloading from. Can include scheme and port number, for example https://google.com:443 |
| file | Path to the file you wish to download. See fota_download_any() for details on expected format. |
| sec_tag | Security tag you want to use with COAPS. Pass -1 to disable DTLS. |
| pdn_id | Packet Data Network ID to use for the download, or 0 to use the default. |
| fragment_size | Fragment size to be used for the download. If 0, no fragmentation is used. |
| expected_type | Type of firmware file to be downloaded and installed. |
| host_cfg | Additional host configuration options. |
| 0 | If download has started successfully. |
| -EALREADY | If download is already ongoing. |
| -E2BIG | If sec_tag_count is larger than CONFIG_FOTA_DOWNLOAD_SEC_TAG_LIST_SIZE_MAXOtherwise, a negative value is returned. |