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

◆ download_client_set_host()

int download_client_set_host ( struct download_client client,
const char *  host,
const struct download_client_cfg config 
)

#include <include/net/download_client.h>

Set a target hostname.

Parameters
[in]clientClient instance.
[in]hostName of the host to connect to, null-terminated. Can include scheme and port number, defaults to HTTP or HTTPS if no scheme is provided.
[in]configConfiguration options.
Return values
intZero on success, a negative error code otherwise.