Here is an example of an MQQT broker using Mosca.