Arexx BS-1400GPRS Mode D'emploi page 61

Masquer les pouces Voir aussi pour BS-1400GPRS:
Table des Matières

Publicité

Les langues disponibles

Les langues disponibles

Example of a 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 BS1400 to a web page without a running a PC.
This method 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 flashed data within a given period.
The page is called with 4 parameters:
E
Parameter
N
Name
A
G
B
C
L
D
I
Example of a message:
S
http://log77.lan/data.xml?A=327682224&B=327685203&C=4096&D=1
H
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>
<value id="4096" type="1" t="327682417">28.9</value>
<value id="4096" type="1" t="327682493">26.8</value>
<value id="4096" type="1" t="327682581">25.4</value>
<value id="4096" type="1" t="327682660">24.7</value>
<value id="4096" type="1" t="327682718">24.4</value>
<value id="4096" type="1" t="327684124">23.0</value>
<value id="4096" type="1" t="327684165">23.1</value>
<more>327684165</more>
</measurements>
The XML Data includes "measurements" elements as root elements. This ele-
ment contains 0,1, or more value elements. Each value element constitutes 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.
Typ
Umschreibung
Zeit
Start der Periode; Anzahl Sekunden ab 1-1-2000
Zeit
Ende der Periode; Anzahl Sekunden ab 1-1-2000
Int
Sensor id
Int
Sensortyp; 1=Temp, 3=RH%, 5=CO2
61

Publicité

Table des Matières
loading

Table des Matières