![]() |
nRF Connect SDK API 3.3.99
|
| int downloader_get | ( | struct downloader * | dl, |
| const struct downloader_host_cfg * | host_cfg, | ||
| const char * | url, | ||
| size_t | from ) |
#include <include/net/downloader.h>
Download a file asynchronously.
This initiates an asynchronous connect-download-disconnect sequence to the target host.
Downloads are handled one at a time. If previous download is not finished this returns -EALREADY.
| [in] | dl | Downloader instance. |
| [in] | host_cfg | Host configuration options. |
| [in] | url | URL of the host to connect to. Can include scheme, port number and full file path, defaults to HTTP or HTTPS if no scheme is provided. |
| [in] | from | Offset from where to resume the download, or zero to download from the beginning. |