1.2.3.14 SYS_MQTT_Initialize Function

C

int32_t SYS_MQTT_Initialize()

Summary

Returns success/ failure for initialization of data structures of the MQTT service

Description

This function is used for initializing the data structures of the MQTT service and is called from within the System Task.

Returns

SYS_NET_SUCCESS - Indicates the data structures were initialized successfully

SYS_NET_FAILURE - Indicates that it failed to initialize the data structures.

Example

if( SYS_MQTT_Initialize() == SYS_MQTT_SUCCESS)
{
}

Remarks

If the MQTT system service is enabled using MHC, then auto generated code will take care of its initialization.