Community news, upcoming events and general discussions
Threads: 34 Posts: 86
Get technical support from the community
Threads: 1352 Posts: 7332
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 35 Posts: 117
Share and discuss community member projects
Threads: 76 Posts: 337
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().