User manual

46
Example message:
id == i && $ value == $ v
In this example, a web server is programmed to decode the indicated string
in two parameters ‘id’ and ‘value’. This method allows to supply up-to-date
data from the BS1200 to a web page without a running a PC.
This mechanism is also used for the update of the temperature logger.
Flashed data
A special xml page is implemented to let other software retrieve data from
the BSXXXX. The page data.xml outputs ashed data within a given period.
The page is called with 4 parameters:
Parameter
name
Type Description
A timestamp Start of period; number of seconds since 1-1-2000
B timestamp End of period; number of seconds since 1-1-2000
C integer Sensor id
D integer Sensor type; 1=temperature, 3= RH%, 5=CO2
Example:
http://log77.lan/data.xml?A=327682224&B=327685203&C=4096&D=1
This call would result in the following dataset:
<?xml version=”1.0” encoding=”utf-8” ?>
<measurements>
<value id=”4096” type=”1” t=”327682224”>25.1</value>
<value id=”4096” type=”1” t=”327682287”>39.5</value>
<value id=”4096” type=”1” t=”327682335”>33.7</value>
<value id=”4096” type=”1” t=”327682378”>30.7</value>
<more>327684165</more>
</measurements>
Die XML Data includes “measurements” elements as root elements. This
element contains 0,1, or more value elements. Each value element constitu-
tes a measurement and contains the folowing attributes:
• type = Sensortype; 1=Temperature, 3= RH, 5=CO2
• t = Time; number of seconds from 1-1-2000
The value is shown as elementvalue.
The data transfer can take a long time this time can be shorter like above
sample. this is done with the “MORE” element it shows which time the
BSXXXX the last time called data from the Flash memory.
E
N
G
L
I
S
H