Files
UCS_schermsoftware/documenenten/Protocollen.txt
2021-04-16 08:13:01 +02:00

90 lines
1.6 KiB
Plaintext

<UCS ver="4.0">
<sequence>123</sequence>
<destination>huis/keuken/lamp</destination>
<source>huis/keuken/schakelaar</source>
<command type="switch">
<data>on</data>
</command>
</UCS>
ucs://huis/keuken/lamp?switch=on
-- XML Protocols ---
---
M2MXML
Request:
<M2MXML ver="1.1">
<Command name="turnOn" address="DO1" seq ="123"/>
</M2MXML>
Response:
<M2MXML ver="1.1">
<Response address="DO1" seq ="123" resultCode="0"/>
<Percept address="DO1" type="digital" value="1" entryType="4"/>
</M2MXML>
-----
XMPP
Request to another peer
<iq type='get'
from='client@clayster.com/amr'
to='device@clayster.com'
id='S0001'>
<req xmlns='urn:xmpp:iot:sensordata' seqnr='1' momentary='true'/>
</iq>
The respons confirming the readout
<iq type='result'
from='device@clayster.com'
to='client@clayster.com/amr'
id='S0001'>
<accepted xmlns='urn:xmpp:iot:sensordata' seqnr='1'/>
</iq>
next respons with the data contained
<message from='device@clayster.com'
to='client@clayster.com/amr'>
<fields xmlns='urn:xmpp:iot:sensordata' seqnr='1' done='true'>
<node nodeId='Device01'>
<timestamp value='2013-03-07T16:24:30'>
<numeric name='Temperature' momentary='true' automaticReadout='true' value='23.4' unit='°C'/>
<numeric name='load level' momentary='true' automaticReadout='true' value='75' unit='%'/>
</timestamp>
</node>
</fields>
</message>
-----
BiTXml
--- Byte protocols ---
-----
COAP
------
MQTT-SN
-----
Xap
xap-header
{
v=12
hop=1
uid=FF123400
class=xap-temp.notification
source=ACME.thermostat.lounge
}
temp.current
{
temp=25
units=C
}
-----