Copyright © NetPing east Co., Ltd E-mail:
Phone:+886-2-23121582
support@netpingdevice.com
[ENG] 14.2. [DKSF 48.4 IU] Relay Management
An interface of URL-encoded commands in a device can be used to integrate with web applications without using an SNMP protocol. A relay
hrough the interface of URL-encoded commands.
management is available t
Relay Status Request
where:
N is a number of a relay, which is indicated after ?r.
–
Returned Values
An error (incorrect format of a request or an incorrect relay number):
Successful completion of a command:
where:
The first argument is always 'ok' ('error' in the case of an error).
The second argument: a relay management source (values are represented for the firmware DKST70):
0 – turned off manually
1 – turned on manually
2 – watchdog
3 – schedule
4 – sc watchdog
5 – logic
The third argument is an instant current status of a relay («0» or «1») considering functioning of the mode «
», after activating a reset, pulse
Watchdog
issue, etc.
Switching a Relay
Changing a control source as well as manual turning on and turning off a relay:
After ?r a relay number is specified after = a number of the mode
is indicated.
(source of control)
where:
n is a relay number
s is a relay operation mode. It is one of the next values:
0 – Manual off
1 – Manual on
2 – Watchdog
http://192.168.0.100
/relay.cgi?rN
relay_result('error');
relay_result('ok', 2, 1);
http://192.168.0.100/relay.cgi?r
n=s