Skip to main content

How is the scriplet that sends an RCPP command on Input to another camera to close its Relay?

Question

How is the scriplet that sends an RCPP command on Input to another camera to close its Relay?

Answer

Find below the scriplet that on Input sends a RCPP command on Input to another camera to close its Relay 1.

There are short comments in the beginning of the scriplet, that will help you to understand the logic and edit it.

This should work on any camera that has input and the relay toggle is possible for any camera that has a relay.


// this is just an example IP - 192.168.10.127

//the Rcpp command to set the camera relay (output) to ON would be: 

//http://192.168.10.127/rcp.xml?command=0x01c1&type=F_FLAG&direction=WRITE&num=1&payload=1

// Rcpp command to To set the relay output to OFF: 

// http://192.168.10.127/rcp.xml?command=0x01c1&type=F_FLAG&direction=WRITE&num=1&payload=0   


RcpCommand

closeRelay1:={Command("rcp.xml?command=0x01c1&type=F_FLAG&direction=WRITE&num=1&payload=1") IP("192.168.10.127")}; 

if(Input(1)) then closeRelay1;

Nice to know:





JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.