Commit a8d2e09d authored by Peter Waher's avatar Peter Waher

Adding example

parent abd3d4f6
<?xml version="1.0" encoding="utf-8"?>
<nd id="Node1" xmlns="urn:ieee:iot:sensordata">
<ts v="2017-09-22T15:22:33Z">
<q n="Temperature" v="12.3" u="C" m="true" ar="true"/>
<s n="SN" v="12345678" i="true" ar="true"/>
</ts>
</nd>
\ No newline at end of file
......@@ -176,7 +176,7 @@ In the following examples, assume `lns="NS"`:
| ID | `Stat` |
|-------|-------------|
| 1 | Avg(%0) |
| 1 | Avg(%0%) |
Control parameters
......@@ -211,3 +211,21 @@ Following is a list of noteable differences:
Examples
---------------
A simple example containing sensor data from a temperature sensor.
```xml
<ts v="2017-09-22T15:22:33Z" xmlns="urn:ieee:iot:sensordata">
<q n="Temperature" v="12.3" u="C" m="true" ar="true"/>
<s n="SN" v="12345678" i="true" ar="true"/>
</ts>
```
If this temperature sensor would be a node inside a concentrator, the same data would be represented as:
```xml
<nd id="Node1" xmlns="urn:ieee:iot:sensordata">
<ts v="2017-09-22T15:22:33Z">
<q n="Temperature" v="12.3" u="C" m="true" ar="true"/>
<s n="SN" v="12345678" i="true" ar="true"/>
</ts>
</nd>```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment