Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

\Micrium\Software\uC-MQTT

...

The function AppMQTTc_Init() is an example function that can be retrieve in the Examples directory of µC/MQTT-client.

Code Block
languagecpp
titleuC/MQTT-client Sample Application Code
linenumberstrue
#include  "app_mqtt-c.h"

[...]

static  void  AppTaskStart (void *p_arg)
{
	/* Initialize BSP */

	/* Initialize CPU */

	/* Initialize Memory */

	/* Initialize TCP-IP */

	/* Initialize DNSc if necessary */ 

	success = AppMQTTc_Init();
    if (success == DEF_FAIL) {
        printf("Error with MQTTc Initialization.\n");
        CPU_SW_EXCEPTION(;);
    }
}