1 \makeatletter \def\verbatim@font
{\sffamily\scriptsize} \makeatother
5 \begin{tabular
}{p
{5cm
}p
{5cm
}}
6 Client to Device $
\rightarrow$ & $
\leftarrow$ Device to Client\\
18 to='dev@device.local/res'
19 from='client@client.local'>
20 <req xmlns='urn:xmpp:sn' seqnr='
1'
22 <node nodeId='Device04'/>
23 <field name='Energy'/>
29 &
\begin{verbatim
}<iq type='result' id='
1'
30 from='dev@device.local'
31 to='client@client.local/res'>
32 <accepted xmlns='urn:xmpp:sn' seqnr='
1'/>
37 <message from='dev@device.local'
38 to='client@client.local/res'>
39 <fields xmlns='urn:xmpp:sn' seqnr='
1' done='true'>
40 <node nodeId='Device04'>
41 <timestamp value='
2013-
03-
07T22:
03:
15'>
42 <numeric name='Energy' momentary='true'
43 value='
12345.67' unit='MWh'/>
44 <numeric name='Power' momentary='true'
45 value='
239.4' unit='W'/>
60 \caption{Example XMPP stream with sensor data (XEP-
0323)
}
61 \label{fig:examplexmpp
}
63 % vim: set ft=tex et ts=2 sw=2 :