Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1409 Posts: 7545
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 78 Posts: 343
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.
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.
Lavanya S P
In which part of the code is used or placed?
In AppController.c file, in the function AppControllerFire(), if MQTT_PublishToTopic() fails, try to reconnect using WLAN_Reconnect().