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

◆ download_client_file_size_get()

int download_client_file_size_get ( struct download_client client,
size_t *  size 
)

#include <include/net/download_client.h>

Retrieve the size of the file being downloaded, in bytes.

The file size is only available after the download has begun.

Parameters
[in]clientClient instance.
[out]sizeFile size.
Return values
intZero on success, a negative error code otherwise.