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

◆ download_client_callback_t

typedef int(* download_client_callback_t) (const struct download_client_evt *event)

#include <include/net/download_client.h>

Download client asynchronous event handler.

Through this callback, the application receives events, such as download of a fragment, download completion, or errors.

If the callback returns a non-zero value, the download stops. To resume the download, use download_client_start().

Parameters
[in]eventThe event.
Returns
Zero to continue the download, non-zero otherwise.