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

◆ downloader_cancel()

int downloader_cancel ( struct downloader * dl)

#include <include/net/downloader.h>

Cancel file download.

Request downloader to stop the download. This does not block. If the downloader_host_cfg.keep_connection flag is set the downloader remains connected to the server. Else the downloader is disconnected. When the download is canceled an DOWNLOADER_EVT_STOPPED event is sent.

Parameters
[in]dlDownloader instance.
Returns
Zero on success, a negative error code otherwise.