Appendix V:the Format Of Cgi Query Command - ICP DAS USA WISE-2841M Series User Manual

Hide thumbs Also See for WISE-2841M Series:
Table of Contents

Advertisement

ICP DAS WISE User Manual
Appendix V:The format of CGI Query command
WISE supports the HTTP protocol to set up and retrieve the I/O channel value,
Internal Register value or system information. In addition, WISE also supports the
JSON format for message exchange. JSON is a popular format; it can reduce the
loading of data transfer, and is easy to be integrated with other Network system.
 CGI Query command
The following is the format of CGI Query command:
http://IP address:port/dll/query.dll?command
The "IP address" is the actual IP address that the WISE is using now. The default
IP address of WISE is "192.168.255.1". The "Port" is the port number of Web
server port of WISE. The default IP address of WISE is "80". If the port number is
80, you can skip it in the setting.
The Command consist a set of parameters. Each parameter consist one name and
one value. The name and the value of a parameter are linked by symbol "=". The
parameters are linked by symbol "&". Depended on the query items, follow the
format to include the corresponding parameters in each CGI command.
The following an example of CGI Query command shows querying the value of
the Internal Register 1 of WISE.
http://192.168.255.1/dll/query.dll?job=get_ir_val&ir_no=1
In the above CGI Query command, it consist two parameters: "job=get_ir_val" and
"ir_no=1". For "job=get_ir_val", "job" is the name of the first parameter,
"get_ir_val" is the value of the first parameter. The first parameter is used to query
the value of Internal Register of WISE. And then for"ir_no=1", "ir_no" is the name
of the second parameter, "1" is the value of the second parameter. The combination
of first parameter and second parameter indicates to query the value of Internal
Register 1 of WISE. When WISE receives the CGI Query command, it will reply
the following message to the command sender.
{
"status": "OK",
"result": {
"value": 2.3
}
}
http://wise.icpdas.com
286

Advertisement

Table of Contents
loading

Table of Contents