Eng] 15.1. [Dksf 48.5 Iu] Io Lines Control - NetPing 8/PWR-220 v4/SMS User Manual

Hide thumbs Also See for 8/PWR-220 v4/SMS:
Table of Contents

Advertisement

NetPing server room environmental monitoring solutions and IP power distribution units.

[ENG] 15.1. [DKSF 48.5 IU] IO Lines Control

The interface of URL-encoded commands in this device can be used for integration with web-applications without SNMP protocole.The operating
of IO lined can be implemented via the interface of URL-encoded commands.
IO LINE STATUS REQUEST
http://192.168.0.100/io.cgi?ioN
where:
N – the number of the line, indicated after ?io.
ALL IO LINES STATUS REQUEST
http://192.168.0.100/io.cgi?io
RETURN VALUES
Error (wrong request format or wrong IO line number):
 io_result('error')
Successful execution of the command:
io_result('ok', 9, [1, 0, 0, 1]);
The first agrument: always 'ok' (upon request erroe — 'error').
The second argument — a bit map of the IO lines status
The third argument — IO line status in the form of a list
RETURN VALUES
Error (wrong request format or wrong IO line number):
 io_result('error')
Successful execution of the command:
io_result('ok', -1, 1, 339)
The first agrument: always 'ok' (upon request erroe — 'error').
The second argument: always  -1 , for API extension in the future
The third argument:current instantaneous state of the IO line, including the reset state.
The forth argument: pulse counter on this IO line.
The name JSON-P callback-а iis fixed, io_result(), and can not be changed in the request
LINE SWITCHING (IN OUTPUT MODE)
Switching to the state "0" or "1":
http://192.168.0.100/io.cgi?ioN=0
http://192.168.0.100/io.cgi?ioN=1
Copyright © NetPing east Co., Ltd / E-mail:
« »
support@netpingdevice.com www.netpingdevice.com
/
/ Phone: +886-2-23121582

Advertisement

Table of Contents
loading

Table of Contents