Function anj_coap_downloader_init
Defined in File coap_downloader.h
Function Documentation
-
int anj_coap_downloader_init(anj_coap_downloader_t *coap_downloader, const anj_coap_downloader_configuration_t *config)
Initializes CoAP downloader internal state variable.
- Parameters:
coap_downloader – Pointer to a variable that will hold the state of CoAP downloader.
config – Configuration structure for the CoAP downloader. Object pointed to by this pointer can be freed after this function returns, as it is copied internally.
- Returns:
0 on success, a non-zero value in case of an error.