MQTT error
Answer
5/27/19 7:41 PM

Hello

 

I am using the example "SendDataOverMQTT", I could connect well and see the data of the sensors, when it gives the value number 130 an error is shown and since the values ​​of the sensors do not show them, only errors are printed. It always happens at value # 130. I attach an image where the error is shown. I hope you can help me solve it.

0 (0 Votes)
RE: MQTT error
Answer
5/29/19 10:26 AM as a reply to Andres Rivera.

Hi Andres,

The error #130 is "MQTT Publish failure".

If you want to fix this issue, try using WLAN_Reconnect() when you get this error code in the application.

Hope this works.

Thanks,

Lavanya S P

0 (0 Votes)
RE: MQTT error
Answer
5/29/19 2:46 PM as a reply to Lavanya S Palanisamy.

Hello

In which part of the code is used or placed?

Thanks,

Andres Rivera

0 (0 Votes)
RE: MQTT error
Answer
5/30/19 5:33 AM as a reply to Andres Rivera.

Hi Andres,

In AppController.c file, in the function AppControllerFire(), if MQTT_PublishToTopic() fails, try to reconnect using WLAN_Reconnect().

Thanks,

Lavanya S P

0 (0 Votes)