nRF Connect SDK API 2.8.0
|
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.
[in] | client | Client instance. |
[in] | host | Name 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] | config | Configuration options. |
int | Zero on success, a negative error code otherwise. |