...
\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 | ||||||
---|---|---|---|---|---|---|
| ||||||
#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(;);
}
} |