05-03-2022, 04:29 AM
(This post was last modified: 05-05-2022, 03:03 AM by KinCony Support.)
improvement:
add HTTP multi control relay command ( you can use one http command turn ON/OFF/toggle any relay) :
http command format:
http: //ip/sw_ctl.cgi?RealyMulSet=A8A7A6A5A4A3A2A1,B8B7B6B5B4B3B2B1,C8C7C6C5C4C3C2C1&postpwd=postpassword
A8A7A6A5A4A3A2A1 use for "TURN ON" 32 channel relay, every channel bit "1" means enable, bit "0" means disable
B8B7B6B5B4B3B2B1 use for "TURN OFF" 32 channel relay, every channel bit "1" means enable, bit "0" means disable
C8C7C6C5C4C3C2C1 use for "TOGGLE" 32 channel relay, every channel bit "1" means enable, bit "0" means disable
every Ax or Bx or Cx use by HEX format data.
For example:
if you want to
TURN ON RELAY 32 31 30 29 (F0000000)
TURN OFF RELAY 04 03 02 01 (0000000F)
TOGGLE RELAY 24 23 22 21 (00F00000)
if your relay controller IP address is 192.168.1.200
if your post password is 12345
At last the HTTP command is : http://192.168.1.200/sw_ctl.cgi?RealyMulSet=F0000000,0000000F,00F00000&postpwd=12345
After send this command: Relay32,31,30,29 will be ON, Relay4,3,2,1 will be OFF, Relay24,23,22,21 will be TOGGLE.
add HTTP multi control relay command ( you can use one http command turn ON/OFF/toggle any relay) :
http command format:
http: //ip/sw_ctl.cgi?RealyMulSet=A8A7A6A5A4A3A2A1,B8B7B6B5B4B3B2B1,C8C7C6C5C4C3C2C1&postpwd=postpassword
A8A7A6A5A4A3A2A1 use for "TURN ON" 32 channel relay, every channel bit "1" means enable, bit "0" means disable
B8B7B6B5B4B3B2B1 use for "TURN OFF" 32 channel relay, every channel bit "1" means enable, bit "0" means disable
C8C7C6C5C4C3C2C1 use for "TOGGLE" 32 channel relay, every channel bit "1" means enable, bit "0" means disable
every Ax or Bx or Cx use by HEX format data.
For example:
if you want to
TURN ON RELAY 32 31 30 29 (F0000000)
TURN OFF RELAY 04 03 02 01 (0000000F)
TOGGLE RELAY 24 23 22 21 (00F00000)
if your relay controller IP address is 192.168.1.200
if your post password is 12345
At last the HTTP command is : http://192.168.1.200/sw_ctl.cgi?RealyMulSet=F0000000,0000000F,00F00000&postpwd=12345
After send this command: Relay32,31,30,29 will be ON, Relay4,3,2,1 will be OFF, Relay24,23,22,21 will be TOGGLE.