I am currently using the PAHO MQTT C++ library (but should apply to other flavors of the MQTT library as well, especially C) to implement an MQTT client asynchronously. From tim