MQTT sample code needed, Subcribed topic data not received to module

I was implementing mqtt based communication for my application, When i started everything(configuration setting,opening port,connecting to broker,publishing to the broker) went well ,But the subscribed data is not received on the device.

please help me out.

please let me know if there any sample code for mqtt implementation,

any pre-configurations to be done before subscribing to topics?

is there any updation needed for the firmware of the module?

I recommend that you use mqtt.fx tools to test publish and subscribe messages。

Hi, Thank you for the reply.
I’m using the same to test this since beginning. It gets published and will be visible on mqttfx.
But the data is not reaching the device. That’s my headache.