Initializes µC/HTTPMQTT-client Suite:
- Validates Configuration.
- Creates the µC/HTTPMQTT-client Task if necessary.
Files
httpmqtt-c.h/httpmqtt-c.c
Prototype
Arguments
p_cfg
Pointer to HTTP Client Suite configuration objectMQTT Client Configuration Object.
p_task_cfg
Pointer to task configuration structure.
p_mem_seg
For future usage. Set to Memory segment from which internal data will be allocated. If DEF_NULL, will be allocated from the global heap.
p_err
Pointer to variable that will receive the return error code from this function:HTTPc
MQTTc_ERR_NONE
...
MQTTc_ERR_NULL_PTR
...
MQTTc_ERR
...
_INVALID
...
_ARG
MQTTc_ERR_ALLOC
MQTTc_ERR_OS_FAIL
Returned Values
None.
Required Configuration
None.
Notes / Warnings
- Must be called after the µC/TCPIP stack has been initialize and is up running.
...