HTTPc_Init
Initializes µC/HTTP-client Suite:
- Validates Configuration.
- Creates the µC/HTTP-client Task if necessary.
Files
http-c.h/http-c.c
Prototype
void HTTPc_Init (const HTTPc_CFG *p_cfg, const HTTPc_TASK_CFG *p_task_cfg, void *p_mem_seg, HTTPc_ERR *p_err);
Arguments
p_cfg
Pointer to HTTP Client Suite configuration object.
p_mem_seg
For future usage. Set to DEF_NULL
.
p_err
Pointer to variable that will receive the return error code from this function:
HTTPc_ERR_NONE
HTTPc_ERR_NULL_PTR
HTTPc_ERR_CFG_CONN_INACTIVITY_TIMEOUT_INVALID
HTTPc_ERR_CFG_CONN_Q_SIZE_INVALID
HTTPc_ERR_CFG_REQ_Q_SIZE_INVALID
HTTPc_ERR_CFG_TASK_PTR_NULL
HTTPc_ERR_INIT
...
Returned Values
None.
Required Configuration
None.
Notes / Warnings
- Must be called after the µC/TCPIP stack has been initialize and is up running.