Closed priya2212 closed 7 years ago
@priya2212 Hello you need to subscribe in void loop exactly in " if (MQTT.available()) " function and add line:
MQTT.subscribe(0, 122212, "GPRSLED", 1);
Issue due to incorrect usage of library. Please use the examples
Hi everyone, I am trying to work with this library to provide MQTT to SIM800 module. I am using Arduino UNO board. I am successfully able to publish the message on the topic but when I am subscribing to the topic and in the callback function, I am controlling the LED based on the message received: Subscription function:
Callback function:
it seems like the callback function is not getting executed. It would be great for me, if anyone can guide me to resolve this issue. Please help me! Thanks & Regards, Priya