elementzonline / SIM800_MQTT

Visit our blog/website for more information
http://www.elementzonline.com
GNU General Public License v3.0
170 stars 96 forks source link

Not being able to subscribe... #41

Closed pedromancuso closed 3 years ago

pedromancuso commented 3 years ago

I'm using your code directly into ArduinoMega. Publish is OK, but, and i'm not being able to subscribe. Also OnConnect is never called. Could you grant an example?

pedromancuso commented 3 years ago

Well...i added the next line into processing function: if(TCP_Flag==true){serialEvent();} Maybe there is another better workaround or better flag to check inside if statement.

It works quite fine, it is an excelent library as it is simple and not as invasive as TinyGSM. Thanks.