38
GATEWAY SPECIFICATION - WebdynPulse
WebdynPulse – Gateway specification - Version 2.0
The URL is configured via the variable “WebService_Url” in the configuration file.
The name of the Web Service can be “initialisation.php” or “confirmation.php”.
The possible parameters are:
MAC-ADR=“MAC address of the gateway” in the format 00:05:F3:XX:XX:XX
NSITE=“site number of the gateway”
ACTION=“action performed”
ACTION-COMP=“supplementary information about the action described by ACTION”
RC=“return code”
RC-COMP= “supplementary information in ASCII about the return code”
The list of Web Services and the available actions is described below:
Web Service “initialisation.php”:
Name
POST data
Description
initialisation.php
MAC-ADR=
MAC address
Automatic attribution of the site number
MAC address format: XX:XX:XX:XX:XX:XX
HTTP response:
ReturnCode##IDsite##
The return codes of the responses from the HTTP server may be:
00: OK
13: MAC-ADR absent
-1: Internal server problem
Web Service “confirm.php”:
Name
POST data
Description
confirm.php
NSITE=IDsite&
ACTION=UPLOADDATA&
RC=0&
RC-COMP=
Informs the HTTP server that a data file has
been uploaded to the FTP server.
confirm.php
NSITE=IDsite&
ACTION=UPLOADALARM&
RC=0&
RC-COMP=
Informs the HTTP server that an alarms file has
been uploaded to the FTP server.
confirm.php
NSITE=IDsite&
ACTION=UPLOADGLOBAL&
ACTION-COMP=
list of files
involved
&
RC=0&
RC-COMP=
Informs the HTTP server that configuration files
have been uploaded to the FTP server.
confirm.php
NSITE=IDsite&
ACTION=CONFIGGLOBAL&
Informs the HTTP server that configuration files
have been downloaded from the FTP server.