In the previous chapters of this book, we discussed different relatively simple protocols and communication patterns to illustrate how communication can be done with devices, in different ways. In the second part of this book, we will introduce a more advanced paradigm of communication that allows us to do much more interesting things with our devices, in a more secure and interoperable, yet flexible, manner. The following chapters will be dedicated to the Extensible Messaging and Presence Protocol (XMPP). Since it provides such a rich set of tools that Internet of things (IoT) developers can use, the scope of the XMPP protocol will be presented throughout several of the following chapters.
This chapter will focus on social interaction with things. It covers:
- An introduction to XMPP
- The basics of XMPP Extension Protocols (XEPs)
- Trust-based communication
- Request/response pattern using XMPP
- Event subscription pattern using XMPP