Source code for the XMPP chapter of the book "Learning Internet of Things".