/
MQTTc_Init
MQTTc_Init
Initializes µC/MQTT-client Suite:
- Validates Configuration.
- Creates the µC/MQTT-client Task
Files
mqtt-c.h/mqtt-c.c
Prototype
void MQTTc_Init (const MQTTc_CFG *p_cfg, const NET_TASK_CFG *p_task_cfg, MEM_SEG *p_mem_seg, MQTTc_ERR *p_err);
Arguments
p_cfg
Pointer to MQTT Client Configuration Object.
p_task_cfg
Pointer to task configuration structure.
p_mem_seg
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:
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.
, multiple selections available,
Related content
MQTTc_ConnSetParam
MQTTc_ConnSetParam
More like this
MQTTc_ConnOpen
MQTTc_ConnOpen
More like this
MQTTc API
MQTTc API
More like this
Installing MQTTc
Installing MQTTc
More like this
MQTT Client Message Object Setup
MQTT Client Message Object Setup
More like this
MQTT-client Objects
MQTT-client Objects
More like this