Result:
<Result>
<measurement_values id="F10001C0000009F0" stamp="11.4.2013 09:25:00">
<tag>00002700</tag>
<context title="Site">A19D60AC2883F9B3</context>
<ch1 title="Channel 1" units="%">100</ch1>
<ch2 title="Channel 2" units="%">111</ch2>
<ch3 title="Channel 3" units="%">225</ch3>
<ch4 title="Channel 4" units="%">358</ch4>
<calc60 title="Calculation channel 1" units="%" calc="1"/>
<calc61 title="Calculation channel 2" units="%" calc="1"/>
<calc62 title="Calculation channel 3" units="%" calc="1"/>
<calc63 title="Calculation channel 4" units="%" calc="1"/>
<calc64 title="Calculation channel 5" units="%" calc="1"/>
<volt title="Battery" units="%">50</volt>
<gsm title="GSM level" units="dBm">-83</gsm>
<temp title="Int. temp" units="K">298,8</temp>
</measurement_values>
</Result>
Explanation:
geraetid
Specifies that the entry point for the request is the device table
[devsn='010146AF251D0BA9']
Specifies that the serial number for the device, for which the date has to be queried, is
"010146AF251D0BA9".
mydatalog4id
Specifies that the data of a myDatalog4 type site should be queried.
mydatalog4data
Specifies that the data from the "Measurement data" table should be queried.
[last()-1]
Specifies that the last data record (with the latest time stamp) should be queried.
10.3.1.2 Data record compression
Data record compression can be activated via the optional
period=...
setting. This means that all
of the data records within the specified period are compressed with the per field adjustable
calculation method.
The calculation method must be specified in brackets after each field in the field list (see "Fields"
on page 98) of the xPath query:
https://{IP address}:{Port}/{xPath Query Table selection}/
(ch0(method=1)|ch0(method=2)|ch0(method=16;sum_mode=4))?{login}&period=15
100
Rev. 01