I'm working in the IoT field and just got started with the WiFi module ESP8266-01. I know how to use the AT comands and HTTP requests, but I want to use MQTT protocol.
I have found this library: https://github.com/tuanpmt/espduino, which seems to be good. But it was designed to use with Arduino and I only know AVR. I know Arduino "is" AVR, but reading C++ code to find out how this library works makes me so confuse!
Can someone please explain to me how this espduino library works? For example: How are the commands sent? What commands are sent to connect to Wifi, connect to a broker, subscribe to a topic, publish data etc. So that I can use those methods with AVR in avr-gcc code.
Any links to some tutorials or other helpful MQTT libraries are fine too.