ICP DAS USA WISE-2841 Series User Manual page 299

Table of Contents

Advertisement

ICP DAS WISE User Manual
The returned value will be shown in the JSON format. In the above example, the
value of Internal Register 1 is 2.3. It is located in "value" section of the "result"
area.
 CGI Query Authentication
After enabling the CGI Query Authentication in the Security Setting section, two
extra parameters - "id" and "password" have to be added to the CGI command.
The value of "id" is for the user account, and the value of "password" is for the
password. The following is an example to enable the CGI Query Authentication.
http://192.168.255.1/dll/query.dll?job=get_ir_val&ir_no=1
&id=icpdas&password=wise
In this example, "icpdas" is the user account, "wise" is the password. If the user
account or password is in error status, then the system will return the following
status message.
{
"status": "PASSWORD_ERROR"
}
 JSONP Supported
If user wants to enable the JSONP, he/she can add an extra parameter "callback" to
the original CGI command, and then assign the value of the "callback" parameter
to the function which is used to receive the returned values. The following is an
example to enable the JSONP.
http://192.168.255.1/dll/query.dll?job=get_ir_val&ir_no=1
&callback=foo
In this example, the function named "foo" is used to receive the returned values.
The returned values are as below.
foo({
"status": "OK",
"result": {
"value": 2.3
}
});
http://wise.icpdas.com
299

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wise-2841m seriesWise-284 series

Table of Contents