print "going to publish topic and i am in the other module"
Also when i run a subscriber code on the digital ocean, i am able to get the message.
1. The MID of the published message .
2 . Also when i run subscriber code on my local machine, i don't get any message.
# This call will block until the message is published.
and this block everything as i can see clearly that i am not able to send the message. I also tried threading i.e. to pass this my_mqtt_publish function to some other thread to make it non-blocking but even it didn't helped.
I am really clueless what am i missing here in the code and really feel akward to ask this kind of question where everything is infront of my eyes and i am not able to find the problem.