MCUs are ideal MQTT clients because the protocol is lightweight and designed for low-bandwidth, low-RAM environments.
"ESP8266 for PIC microcontrollers" is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either ...