Vivotek IB8354-C user manual Useful Functions8.1 Query Status of the Digital Input, Path

Models: IB8354-C

1 207
Download 207 pages 16.65 Kb
Page 180
Image 180

VIVOTEK

URL Command Document for All Series

path

string[40]

<blank>

6/6

Record the storage

 

 

 

 

path of the module.

initscr

string[40]

<blank>

6/6

The script that will

 

 

 

 

handle operation

 

 

 

 

commands from the

 

 

 

 

system.

status

string[40]

off

6/6

Indicate the running

 

 

 

 

status of the module.

 

 

 

 

 

8. Useful Functions8.1 Query Status of the Digital Input

Note: This request requires Viewer privileges

Method: GET/POST

Syntax:

http://<servername>/cgi-bin/dido/getdi.cgi?[di0][&di1][&di2][&di3]

If no parameter is specified, all of the digital input statuses will be returned.

Return:

HTTP/1.0 200 OK\r\n Content-Type: text/plain\r\n Content-Length: <length>\r\n \r\n

[di0=<state>]\r\n

[di1=<state>]\r\n

[di2=<state>]\r\n

[di3=<state>]\r\n

where <state> can be 0 or 1.

Example: Query the status of digital input 1 .

Request:

http://myserver/cgi-bin/dido/getdi.cgi?di1

Response:

HTTP/1.0 200 OK\r\n Content-Type: text/plain\r\n Content-Length: 7\r\n

\r\n

180 - User's Manual

66

 

 

Page 180
Image 180
Vivotek IB8354-C user manual Useful Functions8.1 Query Status of the Digital Input, Path