Currently I am working on one project of Light controls through Wifi esp8266 module along with nodemcu.
I have used MQTT Protocol for M2M Communication.After downloading code it is working fine for two days then it is failing for attempting mqtt connection with value rc = 2. What is wrong i am doing.