XDK_MQTT
Answer
9/7/18 8:08 AM

Hello everyone,

I am using the MQTT implementation from the example. This implementation uses the XDK_MQTT.h API.

If I lost the connection to the MQTT Broker I get the following message.

 INFO | XDK DEVICE 1: MqttEventHandler : Event - 16
 INFO | XDK DEVICE 1: MqttEventHandler : Event - 2
 INFO | XDK DEVICE 1: MqttEventHandler : Event - 4

Do I have any oppertunity to get into the MqttEventHandler and act on the different events?

So my problem is to get into the MqttEventHandler and programm different error handlings.

0 (0 Votes)
RE: XDK_MQTT
Answer
9/7/18 1:27 PM as a reply to Lukas Dörr.
Hello Lukas,

The MqttEventHandler() function you are searching for is defined at line 143 in the implementation file MQTT.c file.
You can find the file the file, by following this folderpath:

SDK > xdk110 > Common > source > Connectivity

There you then can add addional functionality to act on further MQTT events.

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Franjo
0 (0 Votes)