I am trying to push data from my controller through esp using mqtt protocol. I have installed mqtt library on esp and i can send data to the mqtt window. But i am facing some issue.
Procedure:
I am sending a json data through the TX line of the controller to the esp's RX line. the rx of esp after getting a required pre and post string, sends the data in between, after debugging the controller, i was able to understand the data sent via the TX was valid. But the data receiving at the MQTT window was not (sometimes) valid and contained some junk.
Problem:
The data getting transmitted sometimes have a garbage value.