Hmm, I'm looking to do this too. MQTT seems a bit thin on examples.
Shame the only response was "use google"