in the network.
\paragraph{Sensor Data (XEP-0323)~\cite{xep0323}}
-%\begin{figure}
- %\caption{Example stream between a sensor node and a client}
- %\label{fig:streamexample}
- %\begin{verbatim}
-%Client Device
-%<stream>
-
- %\end{verbatim}
-%\end{figure}
This XEP specifies a way of reading out values from a
sensor node. It allows to specify multiple data sources (e.~g. temperature,
humidity) as well as multiple types of data (e.~g., momentary values, historical
accepted the request, it reads out the requested data and returns it in a
subsequent message stanza to the client.
+An example of this protocol can be seen in Figure~\ref{fig:examplexmpp}: after
+both clients have opened their streams, the client requests the momentary values
+for power and energy from the node named \emph{Device04}. The device first
+acknowledges this request, and, after retrieving the values, sends them back
+to the client.
+
+\input{fig-example-xmpp-stream.tex}
+
\paragraph{Control (XEP-0325)~\cite{xep0325}} In this document, a way of
controlling sensor nodes is specified, which allows a client to get and set
control values on the node over message or IQ stanzas. As an example, in this
algorithms as well as additional CPU and memory resources and thus might
decrease message throughput and increase power consumption on embedded systems.
-
-\todo{example XML stream with sensor data}
-
\subsection{Related Approaches}
``Chatty Things'' is not the only approach to implement communication in