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

◆ download_client_disconnect()

int download_client_disconnect ( struct download_client client)

#include <include/net/download_client.h>

Initiate disconnection.

Request client to disconnect from the server. This does not block. When client have been disconnected, it send DOWNLOAD_CLIENT_EVT_CLOSED event.

Request client to disconnect from the server. This does not block. When client has been disconnected, it sends DOWNLOAD_CLIENT_EVT_CLOSED event.

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