39
AK-SecurePowerSwitch Manual,
Data exchange by XML
Switching the relay:
Execute an HTTP-POST “
AK_PS.XML
” and send the following XML data
<?xml version="1.0" encoding="UTF-8"?>
<AK_PS>
<STATUS>TOGGLE</STATUS>
</AK_PS>
Examples:
<STATUS>TOGGLE</STATUS>
= switching over
<STATUS>OFF</STATUS>
= switching off
<STATUS>ON</STATUS>
= switching on
Power interrupt for a specific period:
Execute an HTTP-POST “
AK_PC.XML
” and send the following XML data
<?xml version="1.0" encoding="UTF-8"?>
<AK_PC>
<PCT>1,1</PCT>
</AK_PC>
Examples:
<PCT>1,1</PCT>
= Off in 1 minute. On in 1 minute.
<PCT>15,5</PCT>
= Off in 15 minutes. On in 5 minutes.
<PCT>0,1</PCT>
= Immediately Off. On in 1 minute.
<PCT>15</PCT>
= Off in 1 minute. On in 15 minutes
<PCT>0</PCT>
= PowerCyle deactivate
Note
:
All time values given in minutes.
Execute an HTTP-GET “
AK_PC.XML
” and you get the following XML data
<?xml version="1.0" encoding="UTF-8"?>
<AK_PC>
<PCT>OFF=0:0:56</PCT>
</AK_PC>
Note
:
Response in days: minutes: seconds