Here's the latest Code Samples and Tips contribution in our new OptoForum: an example of easier peer-to-peer communication between PAC controllers.
This example takes advantage of the new RESTful API in SNAP PAC hardware controllers (both the standalone S-series and the rack-mounted R-series).
Download the sample, a single-chart strategy, and you'll be able to read and write to tags on a SNAP-PAC-R1 at our headquarters in California, using the RESTful server on the PAC.
Within the sample you'll see subroutines illustrating how to write (POST) values to a remote PAC and how to read (GET) values from it.
NOTE: For this example the PAC-R uses HTTP rather than the secure HTTPS. Make sure when you set up your own PAC that you don't put it directly on the Internet. We always recommend that your SNAP PAC controller be located behind a firewall and use the secure HTTPS server.
See the peer-to-peer sample.