NS-3 libraries for simulating environments with the MQ Telemetry Transport (MQTT) protocol.
For more information go to the Wiki.
You can see a guide of how to integrate this library into the NS-3 here:
http://www.eg.bucknell.edu/~perrone/2010/08/27/creating-a-new-module-in-ns-3/